Sha256: 8fb997293352c2c5cd2ace2e4b592cfd7875347898ff5c615ce3da84aca56509
Contents?: true
Size: 626 Bytes
Versions: 1
Compression:
Stored size: 626 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facet/string/word_filter.rb # # Extracted Wed Jan 25 11:25:39 EST 2006 # Unit Tools Reap Test Extractor # require 'facet/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.0.3 | packages/core/test/lib/facet/string/test_word_filter.rb |