From 6e34259271c705b3d8bb300b5374addb51dce5a0 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 3 May 2014 23:41:04 +0000 Subject: test_math.rb: rename check as assert_float * test/ruby/test_math.rb (assert_float): rename with `assert_` prefix so that the caller frame would appear in backtraces. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_math.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/ruby/test_math.rb') diff --git a/test/ruby/test_math.rb b/test/ruby/test_math.rb index 3383079cc7..2eaea6cf37 100644 --- a/test/ruby/test_math.rb +++ b/test/ruby/test_math.rb @@ -11,10 +11,11 @@ class TestMath < Test::Unit::TestCase assert_predicate(a, :nan?, *rest) end - def check(a, b) + def assert_float(a, b) err = [Float::EPSILON * 4, [a.abs, b.abs].max * Float::EPSILON * 256].max assert_in_delta(a, b, err) end + alias check assert_float def test_atan2 check(+0.0, Math.atan2(+0.0, +0.0)) -- cgit v1.2.3