mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test/ruby/test_optimization.rb: quiet warnings
This quiets an old "assigned but unused variable" warning left over after r56653 as well as two new "ambiguous first argment" warnings introduced in r58233. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
120976b9f9
commit
42166c6266
1 changed files with 3 additions and 3 deletions
|
@ -338,7 +338,7 @@ STDOUT.flush
|
||||||
foo
|
foo
|
||||||
EOF
|
EOF
|
||||||
EOS
|
EOS
|
||||||
status, err = EnvUtil.invoke_ruby([], "", true, true, {}) {
|
status, _err = EnvUtil.invoke_ruby([], "", true, true, {}) {
|
||||||
|in_p, out_p, err_p, pid|
|
|in_p, out_p, err_p, pid|
|
||||||
in_p.write(script)
|
in_p.write(script)
|
||||||
in_p.close
|
in_p.close
|
||||||
|
@ -507,7 +507,7 @@ EOS
|
||||||
insn = iseq.disasm
|
insn = iseq.disasm
|
||||||
assert_match %r{putobject\s+#{Regexp.quote('"1.8.0"..."1.8.8"')}}, insn
|
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
|
assert_match %r{putobject\s+#{Regexp.quote('"2.0.0".."2.3.2"')}}, insn
|
||||||
assert_no_match /putstring/, insn
|
assert_no_match(/putstring/, insn)
|
||||||
assert_no_match /newrange/, insn
|
assert_no_match(/newrange/, insn)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue