summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authormrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-11 05:28:36 +0000
committermrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-05-11 05:28:36 +0000
commitcab5124b59465bbf8a98a2c9c046259d079f3efb (patch)
tree4e7d8907bf8c260fc8e08163494f2ffda899fb5b /test
parentcedb75e6a1025b72ee155fcc54d95650e079c2c1 (diff)
merge from trunk (r27734)
* ext/bigdecimal/lib/bigdecimal/math.rb (atan), test/bigdecimal/test_bigmath.rb (test_atan): explicitly specify the precision for calculating a reciprocal number of an argument. [Bug #3267] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@27735 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/bigdecimal/test_bigmath.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/bigdecimal/test_bigmath.rb b/test/bigdecimal/test_bigmath.rb
index fbeb06221b..453c47ec6b 100644
--- a/test/bigdecimal/test_bigmath.rb
+++ b/test/bigdecimal/test_bigmath.rb
@@ -57,6 +57,8 @@ class TestBigMath < Test::Unit::TestCase
assert_in_delta(Math::PI/4, atan(BigDecimal("1.0"), N))
assert_in_delta(Math::PI/6, atan(sqrt(BigDecimal("3.0"), N) / 3, N))
assert_in_delta(Math::PI/2, atan(PINF, N))
+ assert_equal(BigDecimal("0.823840753418636291769355073102514088959345624027952954058347023122539489"),
+ atan(BigDecimal("1.08"), 72).round(72), '[ruby-dev:41257]')
end
def test_exp