Skip to content

Test Count Leading Zeros

Documentation for tests/osaka/eip7939_count_leading_zeros/test_count_leading_zeros.py@cc5fc26a.

Generate fixtures for these test cases for Osaka with:

fill -v tests/osaka/eip7939_count_leading_zeros/test_count_leading_zeros.py --fork Osaka

Test Functions Overview

Name Type Cases (Osaka) Description
test_clz_opcode_scenarios state_test 521 Test CLZ opcode functionality.
test_clz_gas state_test 1 Test CLZ opcode gas cost.
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.