Sha256: 06cb74f0a14732acee30c0de91ab1364333df54cdaf79c6a827d227b9203830a
Contents?: true
Size: 1010 Bytes
Versions: 1
Compression:
Stored size: 1010 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/nano/string/camelcase.rb # # Extracted Fri Oct 28 14:20:18 EDT 2005 # Unit Tools Reap Test Extractor # require 'nano/string/camelcase.rb' require 'test/unit' class TCString < Test::Unit::TestCase def test_camelcase assert_equal( "abcXyz", "abc_xyz".camelcase ) assert_equal( "abcXyz", "abc xyz".camelcase ) assert_equal( "abcXyz", "abc xyz".camelcase ) assert_equal( "abcXyz", "abc\txyz".camelcase ) assert_equal( "abcXyz", "abc\nxyz".camelcase ) assert_equal( "abcXyz", "abc____xyz".camelcase ) end def test_camelcase_true assert_equal( "AbcXyz", "abc_xyz".camelcase(true) ) assert_equal( "AbcXyz", "abc xyz".camelcase(true) ) assert_equal( "AbcXyz", "abc xyz".camelcase(true) ) assert_equal( "AbcXyz", "abc\txyz".camelcase(true) ) assert_equal( "AbcXyz", "abc\nxyz".camelcase(true) ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facets-0.9.0 | test/lib/nano/string/test_camelcase.rb |