Skip to content

test_rjumpi_max_backward()

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

EOF with RJUMPI containing the maximum negative offset (-32768).

Source code in tests/osaka/eip7692_eof_v1/eip4200_relative_jumps/test_rjumpi.py
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
def test_rjumpi_max_backward(
    eof_state_test: EOFStateTestFiller,
):
    """EOF with RJUMPI containing the maximum negative offset (-32768)."""
    (
        eof_state_test(
            container=Container(
                sections=[
                    Section.Code(
                        code=Op.PUSH0
                        + Op.RJUMPI[0x7FFF]
                        + Op.NOOP * (0x7FFF - 7)
                        + Op.SSTORE(slot_code_worked, value_code_worked)
                        + Op.STOP
                        + Op.PUSH0
                        + Op.RJUMPI[0x8000]
                        + Op.STOP,
                    )
                ],
            ),
            container_post=Account(storage={slot_code_worked: value_code_worked}),
        ),
    )

Parametrized Test Cases

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

Test ID (Abbreviated)
...fork_Osaka-eof_test
...fork_Osaka-eof_state_test
...fork_Osaka-eof_blockchain_test