diff options
author | mrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-07-30 04:57:45 +0000 |
---|---|---|
committer | mrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-07-30 04:57:45 +0000 |
commit | 70d89f2c1630966e5e813084eb5fba5ff045fdc3 (patch) | |
tree | e415bfe981ccee399a196de0f210aa271b8fe452 /test/bigdecimal | |
parent | 64270d3df28624de151b5d555e02b42b48c5b301 (diff) |
* ext/bigdecimal/lib/bigdecimal/util.rb (Rational#to_d):
revive zero and implicit precision support as a deprecated feature.
* test/bigdecimal/test_bigdecimal_util.rb: modify a test for the above
change.
* NEWS: describes the above change.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/bigdecimal')
-rw-r--r-- | test/bigdecimal/test_bigdecimal_util.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/bigdecimal/test_bigdecimal_util.rb b/test/bigdecimal/test_bigdecimal_util.rb index 72342b922f..301c85e417 100644 --- a/test/bigdecimal/test_bigdecimal_util.rb +++ b/test/bigdecimal/test_bigdecimal_util.rb @@ -34,7 +34,7 @@ class TestBigDecimalUtil < Test::Unit::TestCase end def test_Rational_to_d_with_zero_precision - assert_raise(ArgumentError) { 355.quo(113).to_d(0) } + assert_equal(355.quo(113).to_d, 355.quo(113).to_d(BigDecimal.double_fig*2+1)) end def test_Rational_to_d_with_negative_precision |