Sha256: 1ba1bdf3266b4b6b95cc95de06fa250171775df4131417eec3575767c28e31e6

Contents?: true

Size: 528 Bytes

Versions: 1

Compression:

Stored size: 528 Bytes

Contents

#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
# for lib/facets/core/enumerable/probability.rb
#
# Extracted Wed Aug 23 18:22:52 EDT 2006
# Unit Tools Reap Test Extractor
#

require 'facets/core/enumerable/probability.rb'


  require 'test/unit'

  class TCEnumerable < Test::Unit::TestCase

    def test_probability
      assert_equal( {'a'=>0.5,'b'=>0.5}, %w{a b}.probability )
      assert_equal( {'tom'=>0.5,'boy'=>0.5}, %w{tom boy}.probability )
    end

  end


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-1.7.30 test/lib/facets/core/enumerable/test_probability.rb