Skip to content

test_double_rjumpv()

Documentation for tests/osaka/eip7692_eof_v1/eip4200_relative_jumps/test_rjumpv.py::test_double_rjumpv@49a16fac.

Generate fixtures for these test cases for Osaka with:

fill -v tests/osaka/eip7692_eof_v1/eip4200_relative_jumps/test_rjumpv.py::test_double_rjumpv --fork Osaka

Two RJUMPVs, causing the min stack to underflow.

Source code in tests/osaka/eip7692_eof_v1/eip4200_relative_jumps/test_rjumpv.py
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
def test_double_rjumpv(
    eof_test: EOFTestFiller,
):
    """Two RJUMPVs, causing the min stack to underflow."""
    container = Container.Code(
        code=(Op.PUSH0 + Op.PUSH0 + Op.RJUMPV[6] + Op.PUSH0 + Op.PUSH0 + Op.RJUMPV[0] + Op.RETURN),
        max_stack_height=3,
    )
    eof_test(
        container=container,
        expect_exception=EOFException.STACK_UNDERFLOW,
    )

Parametrized Test Cases

This test case is only parametrized by fork.

Test ID (Abbreviated)
...fork_Osaka-eof_test