Skip to content

test_rjumpi_skips_stack_underflow()

Documentation for tests/osaka/eip7692_eof_v1/eip4200_relative_jumps/test_rjumpi.py::test_rjumpi_skips_stack_underflow@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_skips_stack_underflow --fork Osaka

EOF code containing RJUMPI where the default path produces a stack underflow.

Source code in tests/osaka/eip7692_eof_v1/eip4200_relative_jumps/test_rjumpi.py
481
482
483
484
485
486
487
488
489
490
491
492
def test_rjumpi_skips_stack_underflow(
    eof_test: EOFTestFiller,
):
    """EOF code containing RJUMPI where the default path produces a stack underflow."""
    eof_test(
        container=Container(
            sections=[
                Section.Code(code=Op.ORIGIN + Op.RJUMPI[len(Op.POP)] + Op.POP + Op.STOP),
            ],
        ),
        expect_exception=EOFException.STACK_UNDERFLOW,
    )

Parametrized Test Cases

This test case is only parametrized by fork.

Test ID (Abbreviated)
...fork_Osaka-eof_test