Test Swap¶
Documentation for tests/frontier/opcodes/test_swap.py@8db70f93.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/frontier/opcodes/test_swap.py --fork Amsterdam
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 (Amsterdam) | 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 |