diff options
Diffstat (limited to 'test/ruby/test_integer.rb')
| -rw-r--r-- | test/ruby/test_integer.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/ruby/test_integer.rb b/test/ruby/test_integer.rb index 18346e95f9..0a6b2f4539 100644 --- a/test/ruby/test_integer.rb +++ b/test/ruby/test_integer.rb @@ -187,7 +187,7 @@ class TestInteger < Test::Unit::TestCase assert_int_equal(11110, 11111.round(-1)) assert_int_equal(11100, 11111.round(-2)) assert_int_equal(+200, +249.round(-2)) - assert_int_equal(+200, +250.round(-2)) + assert_int_equal(+300, +250.round(-2)) assert_int_equal(-200, -249.round(-2)) assert_int_equal(+200, +249.round(-2, half: :even)) assert_int_equal(+200, +250.round(-2, half: :even)) @@ -201,7 +201,7 @@ class TestInteger < Test::Unit::TestCase assert_int_equal(+200, +250.round(-2, half: :down)) assert_int_equal(+300, +349.round(-2, half: :down)) assert_int_equal(+300, +350.round(-2, half: :down)) - assert_int_equal(-200, -250.round(-2)) + assert_int_equal(-300, -250.round(-2)) assert_int_equal(-200, -249.round(-2, half: :even)) assert_int_equal(-200, -250.round(-2, half: :even)) assert_int_equal(-300, -349.round(-2, half: :even)) @@ -214,8 +214,8 @@ class TestInteger < Test::Unit::TestCase assert_int_equal(-200, -250.round(-2, half: :down)) assert_int_equal(-300, -349.round(-2, half: :down)) assert_int_equal(-300, -350.round(-2, half: :down)) - assert_int_equal(+20 * 10**70, (+25 * 10**70).round(-71)) - assert_int_equal(-20 * 10**70, (-25 * 10**70).round(-71)) + assert_int_equal(+30 * 10**70, (+25 * 10**70).round(-71)) + assert_int_equal(-30 * 10**70, (-25 * 10**70).round(-71)) assert_int_equal(+20 * 10**70, (+25 * 10**70 - 1).round(-71)) assert_int_equal(-20 * 10**70, (-25 * 10**70 + 1).round(-71)) assert_int_equal(+40 * 10**70, (+35 * 10**70).round(-71)) |
