summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-01-11 10:26:07 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-01-11 10:26:07 +0000
commit0e9cad9a8e25282be170d3e4240bd2ba6ce1a419 (patch)
tree38036f2c06643ce9b67d931f286e112afa0ff5c2
parent1367f28a4973bf24be22ff274b5eb1aa67418627 (diff)
test_bigmath.rb: r44558
* test/bigdecimal/test_bigmath.rb (test_log): add assertion for r44558. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--test/bigdecimal/test_bigmath.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/bigdecimal/test_bigmath.rb b/test/bigdecimal/test_bigmath.rb
index c553353d61e..e48b6c540f5 100644
--- a/test/bigdecimal/test_bigmath.rb
+++ b/test/bigdecimal/test_bigmath.rb
@@ -1,4 +1,5 @@
require_relative "testbase"
+require_relative "../ruby/envutil"
require "bigdecimal/math"
class TestBigMath < Test::Unit::TestCase
@@ -66,5 +67,8 @@ class TestBigMath < Test::Unit::TestCase
assert_in_epsilon(Math.log(10)*1000, BigMath.log(BigDecimal("1e1000"), 10))
assert_raise(Math::DomainError) {BigMath.log(BigDecimal("0"), 10)}
assert_raise(Math::DomainError) {BigMath.log(BigDecimal("-1"), 10)}
+ assert_separately(%w[-rbigdecimal], <<-SRC)
+ assert_in_epsilon(Math.log(10)*19999999999999, BigMath.log(BigDecimal("1E19999999999999"), 10))
+ SRC
end
end