Sha256: 63c5e3ec6b90062124d06602326304087e0ccf1d1836efc0919d194cd0e449e8

Contents?: true

Size: 581 Bytes

Versions: 1

Compression:

Stored size: 581 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/nano/string/probability.rb
#
# Extracted Fri Oct 28 14:20:18 EDT 2005
# Unit Tools Reap Test Extractor
#

require 'nano/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-0.9.0 test/lib/nano/string/test_probability.rb