* insns.def: Fix optimization bug of Float#/ [Bug #9238]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
marcandre 2013-12-10 18:18:31 +00:00
parent 9a938987cb
commit af4e6084d0
3 changed files with 6 additions and 1 deletions

View file

@ -67,6 +67,7 @@ class TestRubyOptimization < Test::Unit::TestCase
def test_fixnum_div
assert_equal 3, 15 / 5
assert_equal 6.66, redefine_method('Float', '/') { 4.2 / 6.66 }, "bug 9238"
end
def test_fixnum_mod