Project

General

Profile

Feature #10261 ยป test_math_ Fix improper test method.PATCH

gogotanaka (Kazuki Tanaka), 09/18/2014 07:58 PM

View differences:

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)
    (1-1/1)