From b7d7519b18ec83d5069238a9648f6e3d56504bcd Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 8 Mar 2008 06:10:22 +0000 Subject: add a test for [ruby-dev:34006]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15730 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_numeric.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test') 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 :/, :% -- cgit v1.2.3