PageRenderTime 45ms CodeModel.GetById 21ms RepoModel.GetById 1ms app.codeStats 0ms

/vendor/gems/facets-2.4.5/test/core/string/test_chars.rb

https://bitbucket.org/mediashelf/fedora-migrator
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
  1. require 'facets/string/chars'
  2. require 'test/unit'
  3. class TC_String_Chars < Test::Unit::TestCase
  4. def test_chars
  5. assert_equal( ["a","b","c"], "abc".chars )
  6. assert_equal( ["a","b","\n","c"], "ab\nc".chars )
  7. end
  8. end