Test Count Leading Zeros¶
Documentation for tests/osaka/eip7939_count_leading_zeros/test_count_leading_zeros.py@0f7c73a7
.
Generate fixtures for these test cases for Osaka with:
fill -v tests/osaka/eip7939_count_leading_zeros/test_count_leading_zeros.py --fork Osaka
Tests EIP-7939: Count leading zeros (CLZ) opcode
Test cases for EIP-7939: Count leading zeros (CLZ) opcode.
Test Functions Overview¶
Name | Type | Cases (Osaka) | Description |
---|---|---|---|
test_clz_opcode_scenarios |
state_test | 521 | Test CLZ opcode functionality. |
test_clz_gas_cost |
state_test | 1 | Test CLZ opcode gas cost. |
test_clz_gas_cost_boundary |
state_test | 20 | Test CLZ opcode gas cost boundary. |
test_clz_stack_underflow |
state_test | 1 | Test CLZ opcode with empty stack (should revert due to stack underflow). |
test_clz_fork_transition |
blockchain_test | 0 | Test CLZ opcode behavior at fork transition. |
test_clz_jump_operation |
state_test | 40 | Test CLZ opcode with valid and invalid jump. |
test_clz_code_copy_operation |
state_test | 6 | Test CLZ opcode with code copy operation. |
test_clz_with_memory_operation |
state_test | 6 | Test CLZ opcode with memory operation. |