mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
skip on Prism generated iseq
This commit is contained in:
parent
eac3dee9cd
commit
7bc66a366d
1 changed files with 8 additions and 2 deletions
|
@ -835,8 +835,14 @@ class TestISeq < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def test_unused_param
|
||||
assert_equal true, RubyVM::InstructionSequence.of(method(:block_using_method)).to_a.dig(11, :use_block)
|
||||
assert_equal nil, RubyVM::InstructionSequence.of(method(:block_unused_method)).to_a.dig(11, :use_block)
|
||||
a = RubyVM::InstructionSequence.of(method(:block_using_method)).to_a
|
||||
|
||||
omit 'TODO: Prism' if a.dig(4, :parser) != :"parse.y"
|
||||
|
||||
assert_equal true, a.dig(11, :use_block)
|
||||
|
||||
b = RubyVM::InstructionSequence.of(method(:block_unused_method)).to_a
|
||||
assert_equal nil, b.dig(11, :use_block)
|
||||
end
|
||||
|
||||
def test_compile_prism_with_invalid_object_type
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue