diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-02-10 21:52:25 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-02-10 21:52:25 +0000 |
commit | 65753a5838bf32db668ef29a52dc801c306384ee (patch) | |
tree | 2f88ffe47f8d420ddff88448fe851b2c9413380f /test/ruby/test_numeric.rb | |
parent | a336e6ebd12cde09855b13fc8de1644de5bfc3ad (diff) | |
download | ruby-65753a5838bf32db668ef29a52dc801c306384ee.tar.gz |
* 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_numeric.rb')
-rw-r--r-- | test/ruby/test_numeric.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/ruby/test_numeric.rb b/test/ruby/test_numeric.rb index b94f2cba59..e69c0bb46c 100644 --- a/test/ruby/test_numeric.rb +++ b/test/ruby/test_numeric.rb @@ -432,7 +432,10 @@ class TestNumeric < Test::Unit::TestCase def test_num2long assert_raise(TypeError) { 1 & nil } assert_equal(1, 1 & 1.0) - assert_raise(RangeError) { 1 & 2147483648.0 } + assert_raise(RangeError) do + 1 & 2147483648.0 + 1 & 9223372036854777856.0 + end o = Object.new def o.to_int; 1; end assert_equal(1, 1 & o) |