aboutsummaryrefslogtreecommitdiffstats
path: root/test/ruby/test_math.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-03-06 05:53:03 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-03-06 05:53:03 +0000
commitd1cd806372d04675e9f646f1c1e01ef97e103ecc (patch)
treed6cfec215d6194c81d652da0ddad654474dfc1eb /test/ruby/test_math.rb
parentd2797c33bd41382c7dd6dbccdb4f2b08044d0cf9 (diff)
downloadruby-d1cd806372d04675e9f646f1c1e01ef97e103ecc.tar.gz
* missing/lgamma_r.c (loggamma): return 0 for 1 and 2.
* test/ruby/test_math.rb: accept errors by functions under missing/. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15708 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_math.rb')
-rw-r--r--test/ruby/test_math.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ruby/test_math.rb b/test/ruby/test_math.rb
index 60fc591a65..67f5e86e42 100644
--- a/test/ruby/test_math.rb
+++ b/test/ruby/test_math.rb
@@ -2,7 +2,8 @@ require 'test/unit'
class TestMath < Test::Unit::TestCase
def check(a, b)
- assert_in_delta(a, b, Float::EPSILON * 4)
+ err = [Float::EPSILON * 4, [a.abs, b.abs].max * Float::EPSILON * 256].max
+ assert_in_delta(a, b, err)
end
def test_atan2