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

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