From 65753a5838bf32db668ef29a52dc801c306384ee Mon Sep 17 00:00:00 2001 From: mame Date: Sun, 10 Feb 2008 21:52:25 +0000 Subject: * test/ruby/test_pack.rb: fix tests for 64bit CPU. * test/ruby/test_bignum.rb: ditto. * test/ruby/test_file_exhaustive.rb: ditto. * test/ruby/test_integer.rb: ditto. * test/ruby/test_time.rb: ditto. * test/ruby/test_numeric.rb: ditto. * test/ruby/test_fixnum.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_integer.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/ruby/test_integer.rb') diff --git a/test/ruby/test_integer.rb b/test/ruby/test_integer.rb index c48be11adf..108e3d8ba8 100644 --- a/test/ruby/test_integer.rb +++ b/test/ruby/test_integer.rb @@ -783,9 +783,9 @@ class TestInteger < Test::Unit::TestCase assert_equal(11100, 11111.round(-2)) assert_equal(Fixnum, 11111.round(-2).class) - assert_equal(1111_1111_1111_1110, 1111_1111_1111_1111.round(-1)) - assert_equal(Bignum, 1111_1111_1111_1111.round(-1).class) - assert_equal(-1111_1111_1111_1110, (-1111_1111_1111_1111).round(-1)) - assert_equal(Bignum, (-1111_1111_1111_1111).round(-1).class) + assert_equal(1111_1111_1111_1111_1111_1111_1111_1110, 1111_1111_1111_1111_1111_1111_1111_1111.round(-1)) + assert_equal(Bignum, 1111_1111_1111_1111_1111_1111_1111_1111.round(-1).class) + assert_equal(-1111_1111_1111_1111_1111_1111_1111_1110, (-1111_1111_1111_1111_1111_1111_1111_1111).round(-1)) + assert_equal(Bignum, (-1111_1111_1111_1111_1111_1111_1111_1111).round(-1).class) end end -- cgit v1.2.3