PageRenderTime 26ms CodeModel.GetById 1ms RepoModel.GetById 0ms app.codeStats 0ms

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

https://bitbucket.org/mediashelf/fedora-migrator
Ruby | 14 lines | 10 code | 4 blank | 0 comment | 0 complexity | cd61743fe3b8a9a981ef8bb7437a23da 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/each_char'
  2. require 'test/unit'
  3. class TC_String_Each_Char < Test::Unit::TestCase
  4. def test_each_char
  5. a = []
  6. i = "this"
  7. i.each_char{ |w| a << w }
  8. assert_equal( ['t', 'h', 'i', 's'], a )
  9. end
  10. end