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_numeric.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test/ruby/test_numeric.rb') 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) -- cgit v1.2.3