From 2de01f01a700c8603858f9543d0e323e2d07df28 Mon Sep 17 00:00:00 2001 From: matz Date: Mon, 6 Oct 2008 00:02:44 +0000 Subject: * test/bigdecimal/test_bigdecimal.rb (test_sqrt_bigdecimal): test updated. a patch from TAKANO Mitsuhiro in [ruby-dev:36669]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/bigdecimal/test_bigdecimal.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'test/bigdecimal/test_bigdecimal.rb') diff --git a/test/bigdecimal/test_bigdecimal.rb b/test/bigdecimal/test_bigdecimal.rb index 90245db625..c1f67b8c90 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) -- cgit v1.2.3