-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(tests): EOF - EIP-3540: Organize code_validation.py tests #668
fix(tests): EOF - EIP-3540: Organize code_validation.py tests #668
Conversation
e3872fc
to
3af06fe
Compare
tests/prague/eip7692_eof_v1/eip3540_eof_v1/test_all_opcodes_in_container.py
Outdated
Show resolved
Hide resolved
tests/prague/eip7692_eof_v1/eip3540_eof_v1/test_all_opcodes_in_container.py
Outdated
Show resolved
Hide resolved
tests/prague/eip7692_eof_v1/eip3540_eof_v1/test_all_opcodes_in_container.py
Outdated
Show resolved
Hide resolved
tests/prague/eip7692_eof_v1/eip3540_eof_v1/test_all_opcodes_in_container.py
Outdated
Show resolved
Hide resolved
tests/prague/eip7692_eof_v1/eip3540_eof_v1/test_all_opcodes_in_container.py
Outdated
Show resolved
Hide resolved
tests/prague/eip7692_eof_v1/eip3540_eof_v1/test_all_opcodes_in_container.py
Show resolved
Hide resolved
tests/prague/eip7692_eof_v1/eip3540_eof_v1/test_all_opcodes_in_container.py
Outdated
Show resolved
Hide resolved
7a1cf43
to
f404143
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm this makes my existed test too complicated.
The parametrisation gets conditional
The test logic becomes hidden somewhere in sub preparators that have even more ifs
tests/prague/eip7692_eof_v1/eip3540_eof_v1/test_all_opcodes_in_container.py
Outdated
Show resolved
Hide resolved
tests/prague/eip7692_eof_v1/eip3540_eof_v1/test_all_opcodes_in_container.py
Show resolved
Hide resolved
tests/prague/eip7692_eof_v1/eip3540_eof_v1/test_all_opcodes_in_container.py
Outdated
Show resolved
Hide resolved
tests/prague/eip7692_eof_v1/eip3540_eof_v1/test_all_opcodes_in_container.py
Outdated
Show resolved
Hide resolved
can remote from this file now: lines 88-100
|
5304071
to
3bdfe5d
Compare
fix(fw): opcode mutability issue fix(fw): `Bytecode` and `Opcode` docstrings feat(fw): Implement comparison methods for Opcode feat(fw): Add data portion to opcode string representation
fix(tests): refactor non-terminating opcode tests in code_validation.py fix(tests): refactor terminating opcode tests in code_validation.py Update tests/prague/eip7692_eof_v1/eip3540_eof_v1/test_all_opcodes_in_container.py Co-authored-by: Paweł Bylica <[email protected]> Update tests/prague/eip7692_eof_v1/eip3540_eof_v1/test_all_opcodes_in_container.py Co-authored-by: Paweł Bylica <[email protected]> Update tests/prague/eip7692_eof_v1/eip3540_eof_v1/test_all_opcodes_in_container.py Co-authored-by: Paweł Bylica <[email protected]> ORIGIN -> PUSH0 fix: review comments fix(tests): EIP-3540: Unnecessary fixtures fix(tests): remove `Op.RETF` from `halting_opcodes` fix(tests): remove test duplicate fix(tests): correctly use sets, fix min_stack_height usages Co-authored-by: Dimitry Kh <[email protected]> fix(tests): remove unnecessary generalization
3bdfe5d
to
bb9c434
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoa the tests are getting complicated, huh?
🗒️ Description
Update tests contained in
tests/prague/eip7692_eof_v1/eip3540_eof_v1/test_all_opcodes_in_container.py
, and delete the file.Implement dynamic stack properties after the data portion of the opcode has been provided.
🔗 Related Issues
None
✅ Checklist
mkdocs serve
locally and verified the auto-generated docs for new tests in the Test Case Reference are correctly formatted.