Skip to content

Test Swap

Documentation for tests/frontier/opcodes/test_swap.py@02aafd78.

Generate fixtures for these test cases for Bogota with:

fill -v tests/frontier/opcodes/test_swap.py --fork Bogota

A State test for the set of SWAP* opcodes. Ported from: ethereum/tests blob/develop/src/GeneralStateTestsFiller/VMTests/vmTests/swapFiller.yml.

Test Functions Overview

Name Type Cases (Bogota) Description
test_stack_underflow state_test 16 Test that the stack underflows when there are not enough elements for the
test_swap state_test 16 The set of SWAP* opcodes swaps the top of the stack with a specific