Sha256: 160ffe3fccc687f7afd5b90ba4f1a304027f74b6d58e1a4a3ab568a58c43c388

Contents?: true

Size: 634 Bytes

Versions: 1

Compression:

Stored size: 634 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facets/core/string/word_filter.rb
#
# Extracted Fri Feb 16 02:00:36 EST 2007
# Project.rb Test Extraction
#

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


  require 'test/unit'

  class TCString < Test::Unit::TestCase

    def test_word_filter
      s = "this is a test"
      n = s.word_filter{ |w| "#{w}1" }
      assert_equal( 'this1 is1 a1 test1', n )
    end

    def test_word_filter!
      s = "this is a test"
      s.word_filter!{ |w| "#{w}1" }
      assert_equal( 'this1 is1 a1 test1', s )
    end

  end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-1.8.49 test/lib/facets/core/string/test_word_filter.rb