Feature #10261 ยป test_math_ Fix improper test method.PATCH
test/ruby/test_math.rb | ||
---|---|---|
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)
|