diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-10-06 00:02:44 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-10-06 00:02:44 +0000 |
| commit | 3759c6a0e77a1a89e8325c2633ca250bb5597aef (patch) | |
| tree | 242c42c31f77a5e6ff716d7e51526a1bf3cc0515 /test/bigdecimal | |
| parent | 647232e8cd27aed2bb97679cf10f56adc9407205 (diff) | |
| download | ruby-3759c6a0e77a1a89e8325c2633ca250bb5597aef.tar.gz ruby-3759c6a0e77a1a89e8325c2633ca250bb5597aef.tar.xz ruby-3759c6a0e77a1a89e8325c2633ca250bb5597aef.zip | |
* test/bigdecimal/test_bigdecimal.rb (test_sqrt_bigdecimal): test
updated. a patch from TAKANO Mitsuhiro <takano32 at jus.or.jp>
in [ruby-dev:36669].
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/bigdecimal')
| -rw-r--r-- | test/bigdecimal/test_bigdecimal.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/bigdecimal/test_bigdecimal.rb b/test/bigdecimal/test_bigdecimal.rb index 90245db62..c1f67b8c9 100644 --- a/test/bigdecimal/test_bigdecimal.rb +++ b/test/bigdecimal/test_bigdecimal.rb @@ -466,9 +466,7 @@ 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(100)) - assert_equal(1125899906842624, x.sqrt(200)) - assert_equal(1125899906842624, x.sqrt(300)) # I don't understand the meaning of argument... + assert_equal(true, x.sqrt(300).precs.last < x.sqrt(1200).precs.last) x = BigDecimal.new("-" + (2**100).to_s) assert_raise(FloatDomainError) { x.sqrt(1) } x = BigDecimal.new((2**200).to_s) |
