Test SWAPN¶
Documentation for tests/osaka/eip7692_eof_v1/eip663_dupn_swapn_exchange/test_swapn.py@206854b5
.
Generate fixtures for these test cases for Osaka with:
fill -v tests/osaka/eip7692_eof_v1/eip663_dupn_swapn_exchange/test_swapn.py --fork Osaka
Tests EIP-663: SWAPN, DUPN and EXCHANGE instructions
Tests for the SWAPN instruction.
Test Functions Overview¶
Name | Type | Cases (Osaka) | Description |
---|---|---|---|
test_swapn_all_valid_immediates |
eof_state_test | 0 | Test case for all valid SWAPN immediates. |
test_swapn_on_max_stack |
eof_test | 2 | Test case out of bounds DUPN immediate. |
test_swapn_stack_underflow |
eof_test | 4 | Test case out of bounds DUPN immediate. |