From 0e9cad9a8e25282be170d3e4240bd2ba6ce1a419 Mon Sep 17 00:00:00 2001 From: nobu Date: Sat, 11 Jan 2014 10:26:07 +0000 Subject: 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 --- test/bigdecimal/test_bigmath.rb | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.3