diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-03-08 06:10:22 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-03-08 06:10:22 +0000 |
commit | b7d7519b18ec83d5069238a9648f6e3d56504bcd (patch) | |
tree | f272b1e40a1fa407dafef7cf734e6ba6099e3e46 /test/ruby/test_numeric.rb | |
parent | 6f8d578b8a42352948e42b5177eefb40660cf35e (diff) | |
download | ruby-b7d7519b18ec83d5069238a9648f6e3d56504bcd.tar.gz |
add a test for [ruby-dev:34006].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15730 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_numeric.rb')
-rw-r--r-- | test/ruby/test_numeric.rb | 2 |
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 :/, :% |