Skip to content

test_rjumpi_stack_validation()

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

Check that you can get to the same opcode with two different stack heights Spec now allows this: 4.b in https://github.com/ipsilon/eof/blob/main/spec/eof.md#stack-validation.

Source code in tests/osaka/eip7692_eof_v1/eip4200_relative_jumps/test_rjumpi.py
819
820
821
822
823
824
825
826
827
828
829
830
831
def test_rjumpi_stack_validation(
    eof_test: EOFTestFiller,
):
    """
    Check that you can get to the same opcode with two different stack heights
    Spec now allows this:
    4.b in https://github.com/ipsilon/eof/blob/main/spec/eof.md#stack-validation.
    """
    container = Container.Code(code=Op.RJUMPI[1](1) + Op.ADDRESS + Op.NOOP + Op.STOP)
    eof_test(
        container=container,
        expect_exception=None,
    )

Parametrized Test Cases

This test case is only parametrized by fork.

Test ID (Abbreviated)
...fork_Osaka-eof_test