Test Swap¶
Documentation for tests/frontier/opcodes/test_swap.py@88e9fb8f.
Generate fixtures for these test cases for Osaka with:
fill -v tests/frontier/opcodes/test_swap.py --fork Osaka
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 (Osaka) | Description |
|---|---|---|---|
test_swap |
state_test | 16 | The set of SWAP* opcodes swaps the top of the stack with a specific |
test_stack_underflow |
state_test | 16 | A test to ensure that the stack underflow when there are not enough |