Sha256: 71894f9597e7a48df3c40f52487de98ce2a9e7e9c8b7402bcab4ecb84d196b53
Contents?: true
Size: 259 Bytes
Versions: 13
Compression:
Stored size: 259 Bytes
Contents
require 'facets/string/each_word.rb' require 'test/unit' class Test_String_EachWord < Test::Unit::TestCase def test_each_word a = [] i = "this is a test" i.each_word{ |w| a << w } assert_equal( ['this', 'is', 'a', 'test'], a ) end end
Version data entries
13 entries across 13 versions & 1 rubygems