diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_numeric.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ruby/test_numeric.rb b/test/ruby/test_numeric.rb index b1edb8fe47..3db054fdae 100644 --- a/test/ruby/test_numeric.rb +++ b/test/ruby/test_numeric.rb @@ -60,9 +60,9 @@ class TestNumeric < Test::Unit::TestCase def %(x); :mod; end end - assert_equal(42, DummyNumeric.new.div(0)) - assert_equal(:mod, DummyNumeric.new.modulo(0)) - assert_equal([42, :mod], DummyNumeric.new.divmod(0)) + assert_equal(42, DummyNumeric.new.div(1)) + assert_equal(:mod, DummyNumeric.new.modulo(1)) + assert_equal([42, :mod], DummyNumeric.new.divmod(1)) assert_kind_of(Integer, 11.divmod(3.5).first, '[ruby-dev:34006]') |