# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/core/enumerable/ideal_entropy.rb # # Extracted Thu May 04 17:46:31 EDT 2006 # Unit Tools Reap Test Extractor # require 'facets/core/enumerable/ideal_entropy.rb' require 'test/unit' class TCEnumerable < Test::Unit::TestCase def test_ideal_entropy assert_equal( 1.0, %w{ a b }.ideal_entropy ) assert_equal( 2.0, %w{ a a b b }.ideal_entropy ) end end