/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
- require 'facets/string/each_char'
- require 'test/unit'
- class TC_String_Each_Char < Test::Unit::TestCase
- def test_each_char
- a = []
- i = "this"
- i.each_char{ |w| a << w }
- assert_equal( ['t', 'h', 'i', 's'], a )
- end
- end