Skip to content

test_rjump_into_rjumpi()

Documentation for tests/osaka/eip7692_eof_v1/eip4200_relative_jumps/test_rjump.py::test_rjump_into_rjumpi@21fb11c8.

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_rjumpi --fork Osaka

EOF1I4200_0010 (Invalid) EOF code containing RJUMP with target RJUMPI immediate.

Source code in tests/osaka/eip7692_eof_v1/eip4200_relative_jumps/test_rjump.py
319
320
321
322
323
324
325
326
def test_rjump_into_rjumpi(
    eof_test: EOFTestFiller,
):
    """EOF1I4200_0010 (Invalid) EOF code containing RJUMP with target RJUMPI immediate."""
    eof_test(
        container=Container.Code(Op.RJUMP[5] + Op.STOP + Op.PUSH1(1) + Op.RJUMPI[-6] + Op.STOP),
        expect_exception=EOFException.INVALID_RJUMP_DESTINATION,
    )

Parametrized Test Cases

This test case is only parametrized by fork.

Test ID (Abbreviated)
...fork_Osaka-eof_test