summaryrefslogtreecommitdiff
path: root/test/ruby/test_numeric.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_numeric.rb')
-rw-r--r--test/ruby/test_numeric.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_numeric.rb b/test/ruby/test_numeric.rb
index 574383cdee..468d89d55a 100644
--- a/test/ruby/test_numeric.rb
+++ b/test/ruby/test_numeric.rb
@@ -73,6 +73,8 @@ class TestNumeric < Test::Unit::TestCase
assert_equal(:mod, DummyNumeric.new.modulo(0))
assert_equal([42, :mod], DummyNumeric.new.divmod(0))
+ assert_kind_of(Integer, 11.divmod(3.5).first, '[ruby-dev:34006]')
+
ensure
DummyNumeric.class_eval do
remove_method :/, :%