diff options
Diffstat (limited to 'test/ruby/test_integer.rb')
-rw-r--r-- | test/ruby/test_integer.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/ruby/test_integer.rb b/test/ruby/test_integer.rb index 108e3d8ba8..2a1c6c4aa7 100644 --- a/test/ruby/test_integer.rb +++ b/test/ruby/test_integer.rb @@ -245,7 +245,11 @@ class TestInteger < Test::Unit::TestCase } } - assert_equal(0**-1 == 0, false) + assert_not_equal(0, begin + 0**-1 + rescue + nil + end, "[ruby-dev:32084] [ruby-dev:34547]") end def test_not |