Skip to content

test_rjumpi_into_rjump()

Documentation for tests/osaka/eip7692_eof_v1/eip4200_relative_jumps/test_rjumpi.py::test_rjumpi_into_rjump@83970623.

Generate fixtures for these test cases for Osaka with:

fill -v tests/osaka/eip7692_eof_v1/eip4200_relative_jumps/test_rjumpi.py::test_rjumpi_into_rjump --fork Osaka

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

Source code in tests/osaka/eip7692_eof_v1/eip4200_relative_jumps/test_rjumpi.py
495
496
497
498
499
500
501
502
503
504
505
506
507
508
def test_rjumpi_into_rjump(
    eof_test: EOFTestFiller,
):
    """EOF1I4200_0023 (Invalid) EOF code containing RJUMPI with target RJUMP immediate."""
    eof_test(
        container=Container(
            sections=[
                Section.Code(
                    code=Op.PUSH1(1) + Op.RJUMPI[3] + Op.STOP + Op.RJUMP[-9],
                )
            ],
        ),
        expect_exception=EOFException.INVALID_RJUMP_DESTINATION,
    )

Parametrized Test Cases

This test case is only parametrized by fork.

Test ID (Abbreviated)
...fork_Osaka-eof_test