Ts/macro#48
Conversation
Changed Files
|
Summary of ChangesHello @tcrypt25519, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request significantly improves the readability and maintainability of bytecode test cases by introducing a set of Rust macros. These macros abstract the direct use of instruction opcodes, allowing test definitions to be more concise and expressive. The changes include refactoring existing tests to adopt this new, cleaner syntax and expanding test coverage with new arithmetic operation tests. Highlights
Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces a set of macros to simplify writing EVM bytecode in tests, which significantly improves readability. This is a great change. However, several of the new arithmetic tests (SUB, MOD) have incorrect logic, either in the arguments provided or the expected results. I've left comments with suggestions to fix them. I also suggested a small change to improve macro consistency.
There was a problem hiding this comment.
Pull request overview
This PR refactors crates/jet ROM-based integration tests to use helper macros for constructing EVM bytecode more ergonomically, and extends the arithmetic test coverage.
Changes:
- Added
bytecode!and per-opcode helper macros to build ROM bytecode sequences more readably. - Migrated existing ROM tests to the new macro-based bytecode construction.
- Added new arithmetic tests (MUL/SUB/DIV/MOD), including zero-divisor cases.
7ada4b3 to
9e036b1
Compare
No description provided.