Sha256: 7a2cdb28c1e1f40f04036137f35758ee20e61a998e21c22b590ba5a2296e159c

Contents?: true

Size: 638 Bytes

Versions: 1

Compression:

Stored size: 638 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facets/core/string/words.rb
#
# Extracted Tue Jul 25 10:07:15 EDT 2006
# Unit Tools Reap Test Extractor
#

require 'facets/core/string/words.rb'


  require 'test/unit'

  class TCString < Test::Unit::TestCase

    def test_001
      x = "a b c\nd e"
      assert_equal( ['a','b','c','d','e'], x.words )
    end

    def test_002
      x = "ab cd\nef"
      assert_equal( ['ab','cd','ef'], x.words )
    end

    def test_003
      x = "ab cd \n ef-gh"
      assert_equal( ['ab','cd','ef-gh'], x.words )
    end

  end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-1.7.0 test/lib/facets/core/string/test_words.rb