Skip to content

new(tests): EOF - EIP-4750: add fibonacci and factorial tests for CALLF #915

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

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

chfast
Copy link
Member

@chfast chfast commented Oct 25, 2024

🗒️ Description

Add tests implementing fibonacci sequance and factorial using recursive CALLF instructions.

They were originally contributed to ethereum/tests by @hugo-dc in ethereum/tests@89c2147.

I'm migrating the tests separately because they are nice examples.

✅ Checklist

  • All: Set appropriate labels for the changes.
  • All: Considered squashing commits to improve commit history.
  • All: Added an entry to CHANGELOG.md.
  • All: Considered updating the online docs in the ./docs/ directory.
  • Tests: All converted JSON/YML tests from ethereum/tests have been added to converted-ethereum-tests.txt.
  • Tests: A PR with removal of converted JSON/YML tests from ethereum/tests have been opened: Remove migrated EOF execution tests tests#1410.
  • Tests: Included the type and version of evm t8n tool used to locally execute test cases: e.g., ref with commit hash or geth 1.13.1-stable-3f40e65.
  • Tests: Ran mkdocs serve locally and verified the auto-generated docs for new tests in the Test Case Reference are correctly formatted.

@chfast chfast added scope:tests Scope: Changes EL client test cases in `./tests` type:test Type: Add/refactor fw unit tests; no fw or el client test case changes labels Oct 25, 2024
@chfast chfast requested review from shemnon and pdobacz October 25, 2024 08:33
Copy link
Contributor

@pdobacz pdobacz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have the rest of CALLF_RETF_Execution cases covered with this?

@chfast
Copy link
Member Author

chfast commented Oct 25, 2024

Do we have the rest of CALLF_RETF_Execution cases covered with this?

Not this one, #914 finishes the job.

Copy link
Member

@marioevz marioevz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I agree with the other two comments, we can merge after they are implemented.

@chfast chfast force-pushed the eof/callf_fib_factorial branch from 6e659a4 to 6cf1f6d Compare October 26, 2024 07:49
Add tests implementing fibonacci sequence and factorial using
recursive CALLF instructions.

They were originally contributed to ethereum/tests by @hugo-dc
in ethereum/tests@89c2147.

Tests were additionally parametrized.
@chfast chfast force-pushed the eof/callf_fib_factorial branch from 6cf1f6d to 7286b04 Compare October 28, 2024 15:13
Copy link
Member

@marioevz marioevz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the changes.

@marioevz marioevz changed the title new(tests): add fibonacci and factorial tests for CALLF new(tests): EOF - EIP-4750: add fibonacci and factorial tests for CALLF Oct 28, 2024
@marioevz marioevz merged commit d20b3c4 into ethereum:main Oct 28, 2024
3 checks passed
@marioevz marioevz deleted the eof/callf_fib_factorial branch October 28, 2024 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope:tests Scope: Changes EL client test cases in `./tests` type:test Type: Add/refactor fw unit tests; no fw or el client test case changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants