Sha256: 8b5d4b56547eca73ca4b0b0bc83d968acc1501c0011ed93997b89867c8cfd954

Contents?: true

Size: 238 Bytes

Versions: 14

Compression:

Stored size: 238 Bytes

Contents

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

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
facets-2.8.4 test/core/string/test_each_char.rb
facets-2.8.3 test/core/string/test_each_char.rb
facets-2.8.2 test/core/string/test_each_char.rb
facets-2.8.1 test/core/string/test_each_char.rb
facets-2.8.0 test/core/string/test_each_char.rb
facets-2.7.0 test/core/string/test_each_char.rb
facets-2.6.0 test/core/string/test_each_char.rb
facets-2.4.4 test/core/string/test_each_char.rb
facets-2.4.2 test/core/string/test_each_char.rb
facets-2.4.3 test/core/string/test_each_char.rb
facets-2.5.1 test/core/string/test_each_char.rb
facets-2.4.5 test/core/string/test_each_char.rb
facets-2.5.0 test/core/string/test_each_char.rb
facets-2.5.2 test/core/string/test_each_char.rb