/vendor/gems/facets-2.4.5/test/core/string/test_each_char.rb
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
- 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