test_exchange_full_stack()¶
Documentation for tests/amsterdam/eip8024_dupn_swapn_exchange/test_exchange.py::test_exchange_full_stack@ffe48572.
Generate fixtures for these test cases for Bogota with:
Test EXCHANGE succeeds on a completely full stack.
EXCHANGE swaps in place without pushing, so it must work at the stack limit. The top 30 items hold their 1-indexed position from the top; EXCHANGE[n, m] swaps positions n + 1 and m + 1, then every window item is stored and checked. The topmost item is popped unstored to make room for the SSTORE keys: no valid pair can touch position 1, and a misplaced swap there still corrupts a checked slot.
Source code in tests/amsterdam/eip8024_dupn_swapn_exchange/test_exchange.py
Parametrized Test Cases¶
This test generates 3 parametrized test cases across 2 forks.