Sha256: 3bb57b93a766e133f0a97110194a4b14681ba62ca436e10c3e05758b02e7fde9
Contents?: true
Size: 624 Bytes
Versions: 1
Compression:
Stored size: 624 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/nano/string/word_filter.rb # # Extracted Fri Oct 28 14:20:18 EDT 2005 # Unit Tools Reap Test Extractor # require 'nano/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-0.9.0 | test/lib/nano/string/test_word_filter.rb |