diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-14 22:35:08 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-02-14 22:35:08 +0000 |
commit | dc9ce32864a99391ef8892946c769c0d5bdf1c41 (patch) | |
tree | 49f18c7e94c210bc1c161202b971e809d4253503 | |
parent | a08d41ea41e273134ba37e773b164696f3139332 (diff) | |
download | ruby-dc9ce32864a99391ef8892946c769c0d5bdf1c41.tar.gz |
test/ruby/test_optimization.rb: fix compile kwarg
Fixes: r62177 ("compile.c: fix string Range optimization with FSL")
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62406 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | test/ruby/test_optimization.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/ruby/test_optimization.rb b/test/ruby/test_optimization.rb index 6e463e1863..83a3a1191a 100644 --- a/test/ruby/test_optimization.rb +++ b/test/ruby/test_optimization.rb @@ -557,8 +557,9 @@ class TestRubyOptimization < Test::Unit::TestCase when "1.8.0"..."1.8.8" then :bar end end; - [ nil, { frozen_string_literal: true } ].each do |opt| - iseq = RubyVM::InstructionSequence.compile(code, nil, nil, opt) + [ true, false ].each do |opt| + iseq = RubyVM::InstructionSequence.compile(code, + frozen_string_literal: opt) insn = iseq.disasm assert_match %r{putobject\s+#{Regexp.quote('"1.8.0"..."1.8.8"')}}, insn assert_match %r{putobject\s+#{Regexp.quote('"2.0.0".."2.3.2"')}}, insn |