Skip to content

test_rjumpv_backwards_large_table()

Documentation for tests/osaka/eip7692_eof_v1/eip4200_relative_jumps/test_rjumpv.py::test_rjumpv_backwards_large_table@008e492e.

Generate fixtures for these test cases for Osaka with:

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

Backwards jump vector with a large table.

Source code in tests/osaka/eip7692_eof_v1/eip4200_relative_jumps/test_rjumpv.py
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
@pytest.mark.parametrize("length", [8, 9])
def test_rjumpv_backwards_large_table(
    eof_test: EOFTestFiller,
    length: int,
):
    """Backwards jump vector with a large table."""
    jump_table = [0] * length
    jump_table += [length * -2 - 6]
    container = Container.Code(
        code=(Op.RJUMPV[jump_table](length) + Op.STOP),
        max_stack_height=1,
    )
    eof_test(
        container=container,
    )

Parametrized Test Cases

The interactive table below is also available as a standalone page.

Test ID (Abbreviated) length
...fork_Osaka-eof_test-length_8 8
...fork_Osaka-eof_test-length_9 9