diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-30 08:06:20 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-30 08:06:20 +0000 |
| commit | 92b1c50f21d4b585ec547b26713f7322e17495c8 (patch) | |
| tree | fdc99e2940cc11f40bd6f573a0baad3ae3c1fd37 /test/bigdecimal | |
| parent | 0427a5037f2f453462aeadd6d717a4edf513a0bb (diff) | |
| download | ruby-92b1c50f21d4b585ec547b26713f7322e17495c8.tar.gz ruby-92b1c50f21d4b585ec547b26713f7322e17495c8.tar.xz ruby-92b1c50f21d4b585ec547b26713f7322e17495c8.zip | |
* test/bigdecimal/test_bigdecimal.rb (test_sqrt_bigdecimal): wrong
precision specification. a patch from TAKANO Mitsuhiro
<takano32 at jus.or.jp> in [ruby-dev:36634].
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/bigdecimal')
| -rw-r--r-- | test/bigdecimal/test_bigdecimal.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/bigdecimal/test_bigdecimal.rb b/test/bigdecimal/test_bigdecimal.rb index f8d932a87..90245db62 100644 --- a/test/bigdecimal/test_bigdecimal.rb +++ b/test/bigdecimal/test_bigdecimal.rb @@ -466,9 +466,9 @@ class TestBigDecimal < Test::Unit::TestCase x = BigDecimal.new("0.09") assert_in_delta(0.3, x.sqrt(1), 0.001) x = BigDecimal.new((2**100).to_s) - assert_equal(1125899906842624, x.sqrt(1)) - assert_equal(1125899906842624, x.sqrt(2)) - assert_equal(1125899906842624, x.sqrt(3)) # I don't understand the meaning of argument... + assert_equal(1125899906842624, x.sqrt(100)) + assert_equal(1125899906842624, x.sqrt(200)) + assert_equal(1125899906842624, x.sqrt(300)) # I don't understand the meaning of argument... x = BigDecimal.new("-" + (2**100).to_s) assert_raise(FloatDomainError) { x.sqrt(1) } x = BigDecimal.new((2**200).to_s) |
