Skip to content

test_rjumpi_backwards_onto_dup()

Documentation for tests/osaka/eip7692_eof_v1/eip4200_relative_jumps/test_rjumpi.py::test_rjumpi_backwards_onto_dup@3719e927.

Generate fixtures for these test cases for Osaka with:

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

Backwards jumpi onto a dup.

Source code in tests/osaka/eip7692_eof_v1/eip4200_relative_jumps/test_rjumpi.py
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
def test_rjumpi_backwards_onto_dup(
    eof_test: EOFTestFiller,
):
    """Backwards jumpi onto a dup."""
    container = Container.Code(
        code=(Op.PUSH0 + Op.DUP1 + Op.RJUMPI[-4] + Op.STOP),
        max_stack_increase=2,
    )
    eof_test(
        container=container,
    )

Parametrized Test Cases

This test case is only parametrized by fork and fixture format.

Test ID (Abbreviated)
...fork_Osaka-eof_test
...fork_Osaka-state_test_from_eof_test
...fork_Osaka-blockchain_test_from_eof_test