Sha256: 64f9a81634de38e8ef0063e5f9e2878ef69b50856a0b43b4ee688cfa40faa095
Contents?: true
Size: 583 Bytes
Versions: 1
Compression:
Stored size: 583 Bytes
Contents
# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facet/string/probability.rb # # Extracted Wed Jan 25 11:25:39 EST 2006 # Unit Tools Reap Test Extractor # require 'facet/string/probability.rb' require 'test/unit' class TCString < Test::Unit::TestCase def test_probability assert_equal( {'a'=>0.5,'b'=>0.5}, "ab".probability ) assert_equal( {'tom'=>0.5,'boy'=>0.5}, "tom boy".probability(:word) ) assert_equal( {'tom'=>0.5,'boy'=>0.5}, "tom\nboy".probability(:line) ) 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_probability.rb |