diff --git a/test/ruby/test_math.rb b/test/ruby/test_math.rb index 4d819d7..16da773 100644 --- a/test/ruby/test_math.rb +++ b/test/ruby/test_math.rb @@ -3,7 +3,7 @@ require 'test/unit' class TestMath < Test::Unit::TestCase def assert_infinity(a, *rest) rest = ["not infinity: #{a.inspect}"] if rest.empty? - assert_not_predicate(a, :finite?, *rest) + assert_equal(Float::INFINITY, a, *rest) end def assert_nan(a, *rest)