summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_numeric.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_numeric.rb b/test/ruby/test_numeric.rb
index 0dd7b2e99c..43d53e7fcf 100644
--- a/test/ruby/test_numeric.rb
+++ b/test/ruby/test_numeric.rb
@@ -55,6 +55,7 @@ class TestNumeric < Test::Unit::TestCase
end
def test_divmod
+=begin
DummyNumeric.class_eval do
def /(x); 42.0; end
def %(x); :mod; end
@@ -63,13 +64,16 @@ class TestNumeric < Test::Unit::TestCase
assert_equal(42, DummyNumeric.new.div(1))
assert_equal(:mod, DummyNumeric.new.modulo(1))
assert_equal([42, :mod], DummyNumeric.new.divmod(1))
+=end
assert_kind_of(Integer, 11.divmod(3.5).first, '[ruby-dev:34006]')
+=begin
ensure
DummyNumeric.class_eval do
remove_method :/, :%
end
+=end
end
def test_real_p