Skip to content

Test EXCHANGE

Documentation for tests/osaka/eip7692_eof_v1/eip663_dupn_swapn_exchange/[email protected].

Generate fixtures for these test cases for Osaka with:

fill -v tests/osaka/eip7692_eof_v1/eip663_dupn_swapn_exchange/test_exchange.py --fork Osaka
Tests EIP-663: SWAPN, DUPN and EXCHANGE instructions

Tests for the EXCHANGE instruction.

Test Functions Overview

Name Type Cases (Osaka) Description
test_exchange_all_valid_immediates eof_state_test 0 Test case for all valid EXCHANGE immediates.
test_exchange_stack_underflow eof_test 5 Test case the EXCHANGE causing stack underflow.
test_exchange_simple state_test 2 Test case for simple EXCHANGE operations.