diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-01-11 10:26:07 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-01-11 10:26:07 +0000 |
commit | 0e9cad9a8e25282be170d3e4240bd2ba6ce1a419 (patch) | |
tree | 38036f2c06643ce9b67d931f286e112afa0ff5c2 /test/bigdecimal/test_bigmath.rb | |
parent | 1367f28a4973bf24be22ff274b5eb1aa67418627 (diff) | |
download | ruby-0e9cad9a8e25282be170d3e4240bd2ba6ce1a419.tar.gz |
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
Diffstat (limited to 'test/bigdecimal/test_bigmath.rb')
-rw-r--r-- | test/bigdecimal/test_bigmath.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/bigdecimal/test_bigmath.rb b/test/bigdecimal/test_bigmath.rb index c553353d61..e48b6c540f 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 |