Sha256: 9efda3549960b647d525549aa7aab8da0bd37edbba33a291116d89826280e4a5
Contents?: true
Size: 557 Bytes
Versions: 1
Compression:
Stored size: 557 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/nano/string/frequency.rb # # Extracted Fri Oct 28 14:20:18 EDT 2005 # Unit Tools Reap Test Extractor # require 'nano/string/frequency.rb' require 'test/unit' class TCString < Test::Unit::TestCase def test_frequency assert_equal( {'a'=>1,'b'=>1}, "ab".frequency ) assert_equal( {'tom'=>1,'boy'=>1}, "tom boy".frequency(:word) ) assert_equal( {'tom'=>1,'boy'=>1}, "tom\nboy".frequency(:line) ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facets-0.9.0 | test/lib/nano/string/test_frequency.rb |