From dc9ce32864a99391ef8892946c769c0d5bdf1c41 Mon Sep 17 00:00:00 2001 From: normal Date: Wed, 14 Feb 2018 22:35:08 +0000 Subject: [PATCH] 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 --- test/ruby/test_optimization.rb | 5 +++-- 1 file 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