diff --git a/ChangeLog b/ChangeLog index b8f68f6ec5..0139f6437c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Tue Sep 30 17:04:59 2008 Yukihiro Matsumoto + + * test/bigdecimal/test_bigdecimal.rb (test_sqrt_bigdecimal): wrong + precision specification. a patch from TAKANO Mitsuhiro + in [ruby-dev:36634]. + Tue Sep 30 16:53:55 2008 Nobuyoshi Nakada * parse.y (stmt): returns non zero. [ruby-dev:36633] 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)