mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
add a test for [ruby-dev:34006].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15730 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6f8d578b8a
commit
b7d7519b18
1 changed files with 2 additions and 0 deletions
|
@ -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 :/, :%
|
||||
|
|
Loading…
Reference in a new issue