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 | 04383f8347519cc6f5566c998dfa83981c30d0a5 (patch) | |
| tree | 2f88ffe47f8d420ddff88448fe851b2c9413380f /test/ruby/test_fixnum.rb | |
| parent | 644f2eeca5392124264a0839e9f8500d700685c0 (diff) | |
| download | ruby-04383f8347519cc6f5566c998dfa83981c30d0a5.tar.gz ruby-04383f8347519cc6f5566c998dfa83981c30d0a5.tar.xz ruby-04383f8347519cc6f5566c998dfa83981c30d0a5.zip | |
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@15427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_fixnum.rb')
| -rw-r--r-- | test/ruby/test_fixnum.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/ruby/test_fixnum.rb b/test/ruby/test_fixnum.rb index d7ec6a339..e0d2b18b4 100644 --- a/test/ruby/test_fixnum.rb +++ b/test/ruby/test_fixnum.rb @@ -121,7 +121,10 @@ class TestFixnum < Test::Unit::TestCase def test_induced_from assert_equal(1, Fixnum.induced_from(1)) - assert_raise(RangeError) { Fixnum.induced_from(2**31-1) } + assert_raise(RangeError) do + Fixnum.induced_from(2**31-1) + Fixnum.induced_from(2**63-1) + end assert_equal(1, Fixnum.induced_from((2**32).coerce(1).first)) end |
