Skip to content

test_rjumpi_into_rjumpi()

Documentation for tests/osaka/eip7692_eof_v1/eip4200_relative_jumps/test_rjumpi.py::test_rjumpi_into_rjumpi@21fb11c8.

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

EOF1I4200_0022 (Invalid) EOF code containing RJUMPI with target other RJUMPI immediate.

Source code in tests/osaka/eip7692_eof_v1/eip4200_relative_jumps/test_rjumpi.py
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
def test_rjumpi_into_rjumpi(
    eof_test: EOFTestFiller,
):
    """EOF1I4200_0022 (Invalid) EOF code containing RJUMPI with target other RJUMPI immediate."""
    eof_test(
        container=Container(
            sections=[
                Section.Code(
                    code=Op.PUSH1(1)
                    + Op.RJUMPI[5]
                    + Op.STOP
                    + Op.PUSH1(1)
                    + Op.RJUMPI[-11]
                    + 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