Skip to content

Add optional gasUsed assertion to testrunner output expectations - #489

Open
axic wants to merge 2 commits into
argotorg:mainfrom
axic:testrunner-gasused
Open

Add optional gasUsed assertion to testrunner output expectations#489
axic wants to merge 2 commits into
argotorg:mainfrom
axic:testrunner-gasused

Conversation

@axic

@axic axic commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Added it to three test cases, which use quite a few features of the stdlib.

Pro: Maybe this is too early, but would be nice to track effects.
Con: Very likely many (if not all) stdlib PRs will have to modify these three values.

@axic

axic commented Jun 24, 2026

Copy link
Copy Markdown
Contributor Author

Please note: before merging this needs to be updated as likely other changes affected the gasUsed already.

@axic
axic force-pushed the testrunner-gasused branch from bbf5951 to 370d8bd Compare June 29, 2026 10:19
The testrunner JSON output expectation now supports an optional
"gasUsed" field. When present, the test fails unless the gas used
at that point matches exactly; when absent, gas is ignored.

Co-Authored-By: Alex Beregszaszi <alex@rtfs.hu>
@axic
axic force-pushed the testrunner-gasused branch from 370d8bd to 0e179d9 Compare August 2, 2026 19:45
@axic
axic force-pushed the testrunner-gasused branch from 0e179d9 to aa54a82 Compare August 2, 2026 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants