Skip to content

test_rjump_into_self_remaining_code()

Documentation for tests/osaka/eip7692_eof_v1/eip4200_relative_jumps/test_rjump.py::test_rjump_into_self_remaining_code@49a16fac.

Generate fixtures for these test cases for Osaka with:

fill -v tests/osaka/eip7692_eof_v1/eip4200_relative_jumps/test_rjump.py::test_rjump_into_self_remaining_code --fork Osaka

EOF1I4200_0008 (Invalid) EOF code containing RJUMP with target self RJUMP but remaining unreachable code.

Source code in tests/osaka/eip7692_eof_v1/eip4200_relative_jumps/test_rjump.py
239
240
241
242
243
244
245
246
247
248
249
def test_rjump_into_self_remaining_code(
    eof_test: EOFTestFiller,
):
    """
    EOF1I4200_0008 (Invalid) EOF code containing RJUMP with target self RJUMP but remaining
    unreachable code.
    """
    eof_test(
        container=Container.Code(Op.RJUMP[-len(Op.RJUMP[0])] + Op.STOP),
        expect_exception=EOFException.UNREACHABLE_INSTRUCTIONS,
    )

Parametrized Test Cases

This test case is only parametrized by fork.

Test ID (Abbreviated)
...fork_Osaka-eof_test