diff options
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 d7ec6a3396..e0d2b18b44 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 |