/vendor/gems/facets-2.4.5/test/core/string/test_chars.rb
Ruby | 12 lines | 8 code | 4 blank | 0 comment | 0 complexity | af937ee1a2a5e124ba75d5735a1e1fed MD5 | raw file
Possible License(s): GPL-3.0, GPL-2.0, IPL-1.0, AGPL-1.0, LGPL-3.0
- require 'facets/string/chars'
- require 'test/unit'
- class TC_String_Chars < Test::Unit::TestCase
- def test_chars
- assert_equal( ["a","b","c"], "abc".chars )
- assert_equal( ["a","b","\n","c"], "ab\nc".chars )
- end
- end