summaryrefslogtreecommitdiff
path: root/test/ruby/test_integer.rb
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-02-10 21:52:25 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-02-10 21:52:25 +0000
commit65753a5838bf32db668ef29a52dc801c306384ee (patch)
tree2f88ffe47f8d420ddff88448fe851b2c9413380f /test/ruby/test_integer.rb
parenta336e6ebd12cde09855b13fc8de1644de5bfc3ad (diff)
* 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
Diffstat (limited to 'test/ruby/test_integer.rb')
-rw-r--r--test/ruby/test_integer.rb8
1 files changed, 4 insertions, 4 deletions
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