Skip to content

Commit

Permalink
fix(tests): remove Op.RETF from halting_opcodes
Browse files Browse the repository at this point in the history
  • Loading branch information
marioevz committed Jul 8, 2024
1 parent 4eb5e3b commit 99682dc
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
Op.RETURN,
Op.REVERT,
Op.INVALID,
Op.RETF,
}


Expand Down Expand Up @@ -113,7 +112,7 @@ def test_all_opcodes_in_container(
for op in list(Op)
if op not in invalid_eof_opcodes
and op not in halting_opcodes
and op not in [Op.RJUMP, Op.RJUMPI, Op.RJUMPV]
and op not in [Op.RETF, Op.RJUMP, Op.RJUMPI, Op.RJUMPV]
],
)
def test_all_invalid_terminating_opcodes(
Expand Down Expand Up @@ -160,7 +159,7 @@ def test_all_invalid_terminating_opcodes(

@pytest.mark.parametrize(
"opcode",
[op for op in list(halting_opcodes)],
[op for op in list(halting_opcodes)] + [Op.RETF],
)
def test_all_unreachable_terminating_opcodes_after_stop(
eof_test: EOFTestFiller,
Expand Down Expand Up @@ -213,7 +212,7 @@ def test_all_unreachable_terminating_opcodes_after_stop(

@pytest.mark.parametrize(
"opcode",
[op for op in list(Op) if op in halting_opcodes and op != Op.STOP],
[op for op in list(halting_opcodes) if op != Op.STOP] + [Op.RETF],
)
def test_all_unreachable_terminating_opcodes_before_stop(
eof_test: EOFTestFiller,
Expand Down

0 comments on commit 99682dc

Please sign in to comment.