Sha256: f3b1df84e0e60d3b9d7c6f55644569590b2c6802fd281867ca828062473cb8a7

Contents?: true

Size: 595 Bytes

Versions: 1

Compression:

Stored size: 595 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facets/core/string/probability.rb
#
# Extracted Mon Jun 05 08:14:29 EDT 2006
# Unit Tools Reap Test Extractor
#

require 'facets/core/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.4.0 test/lib/facets/core/string/test_probability.rb