[前][次][番号順一覧][スレッド一覧]

ruby-changes:32482

From: nobu <ko1@a...>
Date: Sat, 11 Jan 2014 19:26:12 +0900 (JST)
Subject: [ruby-changes:32482] nobu:r44561 (trunk): test_bigmath.rb: r44558

nobu	2014-01-11 19:26:07 +0900 (Sat, 11 Jan 2014)

  New Revision: 44561

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=44561

  Log:
    test_bigmath.rb: r44558
    
    * test/bigdecimal/test_bigmath.rb (test_log): add assertion for r44558.

  Modified files:
    trunk/test/bigdecimal/test_bigmath.rb
Index: test/bigdecimal/test_bigmath.rb
===================================================================
--- test/bigdecimal/test_bigmath.rb	(revision 44560)
+++ test/bigdecimal/test_bigmath.rb	(revision 44561)
@@ -1,4 +1,5 @@ https://github.com/ruby/ruby/blob/trunk/test/bigdecimal/test_bigmath.rb#L1
 require_relative "testbase"
+require_relative "../ruby/envutil"
 require "bigdecimal/math"
 
 class TestBigMath < Test::Unit::TestCase
@@ -66,5 +67,8 @@ class TestBigMath < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/bigdecimal/test_bigmath.rb#L67
     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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]