summaryrefslogtreecommitdiff
path: root/test/ruby/test_math.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_math.rb')
-rw-r--r--test/ruby/test_math.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_math.rb b/test/ruby/test_math.rb
index bc2172d680..6e67099c6b 100644
--- a/test/ruby/test_math.rb
+++ b/test/ruby/test_math.rb
@@ -168,6 +168,7 @@ class TestMath < Test::Unit::TestCase
assert_nothing_raised { assert_nan(Math.log(1.0, Float::NAN)) }
assert_nothing_raised { assert_infinity(-Math.log(0)) }
assert_nothing_raised { assert_infinity(-Math.log(0, 2)) }
+ check(307.95368556425274, Math.log(2**1023, 10))
end
def test_log2