# _____ _ # |_ _|__ ___| |_ # | |/ _ \/ __| __| # | | __/\__ \ |_ # |_|\___||___/\__| # # for lib/facets/core/numeric/distance.rb # # Extracted Tue Feb 06 17:03:51 EST 2007 # Project.rb Test Extraction # require 'facets/core/numeric/distance.rb' require 'test/unit' class TCNumeric < Test::Unit::TestCase def test_distance assert_equal( 4, 10.distance(6) ) assert_equal( 2, 10.distance(8) ) assert_equal( -2, 7.distance(9) ) end end