mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Revert "Remove opt_nil_p test to remove warning for now"
This reverts commit a1727e43af
.
This commit is contained in:
parent
086ffe72c7
commit
536ba7c81e
1 changed files with 7 additions and 0 deletions
|
@ -365,6 +365,13 @@ class TestJIT < Test::Unit::TestCase
|
||||||
end;
|
end;
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_compile_insn_opt_nil_p
|
||||||
|
assert_compile_once("#{<<~"begin;"}\n#{<<~"end;"}", result_inspect: 'false', insns: %i[opt_nil_p])
|
||||||
|
begin;
|
||||||
|
nil.nil?.nil?
|
||||||
|
end;
|
||||||
|
end
|
||||||
|
|
||||||
def test_compile_insn_opt_str_uminus
|
def test_compile_insn_opt_str_uminus
|
||||||
assert_compile_once("#{<<~"begin;"}\n#{<<~"end;"}", result_inspect: '"bar"', insns: %i[opt_str_uminus])
|
assert_compile_once("#{<<~"begin;"}\n#{<<~"end;"}", result_inspect: '"bar"', insns: %i[opt_str_uminus])
|
||||||
begin;
|
begin;
|
||||||
|
|
Loading…
Add table
Reference in a new issue