Skip to content

test_rjump_into_stack_underflow()

Documentation for tests/osaka/eip7692_eof_v1/eip4200_relative_jumps/test_rjump.py::test_rjump_into_stack_underflow@008e492e.

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

EOF code containing RJUMP with target instruction that cause stack underflow.

Source code in tests/osaka/eip7692_eof_v1/eip4200_relative_jumps/test_rjump.py
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
def test_rjump_into_stack_underflow(
    eof_test: EOFTestFiller,
):
    """EOF code containing RJUMP with target instruction that cause stack underflow."""
    eof_test(
        container=Container.Code(
            Op.ORIGIN
            + Op.RJUMPI[len(Op.RJUMP[0])]
            + Op.RJUMP[len(Op.STOP)]
            + Op.STOP
            + 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