Sha256: 0b4d8c4e1eaee4e3bb363dd6ed78184ded64da99dc5e530cf44ee8169e360eca

Contents?: true

Size: 556 Bytes

Versions: 8

Compression:

Stored size: 556 Bytes

Contents

require 'test/unit/testcase'
require 'wlang'
require 'wlang/dialects/plain_text_dialect'

class WLang::PlainTestDialectTest < Test::Unit::TestCase
  
  # Tests the camel case function
  def test_camel_case
    tests = [
      ["blambeau", "Blambeau"],
      ["the world and the cat", "TheWorldAndTheCat"],
      ["\nthe\t world   and-the_cat", "TheWorldAndTheCat"],
      #["l'éléphant", "LElephant"],
    ]
    tests.each do |t|
      src, expected = t
      assert_equal(expected, WLang::EncoderSet::PlainText.camel_case(src, nil))
    end
  end
  
end

Version data entries

8 entries across 7 versions & 1 rubygems

Version Path
wlang-0.10.2 test/unit/wlang/plain_text_dialect_test.rb
wlang-0.10.1 ./test/unit/wlang/plain_text_dialect_test.rb
wlang-0.10.1 test/unit/wlang/plain_text_dialect_test.rb
wlang-0.10.0 test/unit/wlang/plain_text_dialect_test.rb
wlang-0.9.2 test/unit/wlang/plain_text_dialect_test.rb
wlang-0.8.5 test/wlang/plain_text_dialect_test.rb
wlang-0.8.4 test/wlang/plain_text_dialect_test.rb
wlang-0.9.1 test/unit/wlang/plain_text_dialect_test.rb