# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/core/enumerable/probability.rb # # Extracted Fri Feb 16 02:00:36 EST 2007 # Project.rb Test Extraction # 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