Sha256: 932dd296c515e79dd8bdaa96e6bac546302c3accb919e6822d77c184fd959d12

Contents?: true

Size: 638 Bytes

Versions: 1

Compression:

Stored size: 638 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facets/core/string/word_filter.rb
#
# Extracted Wed Aug 23 18:22:52 EDT 2006
# Unit Tools Reap Test Extractor
#

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.7.30 test/lib/facets/core/string/test_word_filter.rb