aboutsummaryrefslogtreecommitdiffstats
path: root/test/bigdecimal/test_bigdecimal.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/bigdecimal/test_bigdecimal.rb')
-rw-r--r--test/bigdecimal/test_bigdecimal.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/bigdecimal/test_bigdecimal.rb b/test/bigdecimal/test_bigdecimal.rb
index f8d932a87a..90245db625 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)