This repository has been archived by the owner on Mar 25, 2024. It is now read-only.
Better tests for keccak precompile #58
Merged
StanislavBreadless
merged 8 commits into
v1-4-1-integration
from
sb-enhance-keccak-tests
Nov 21, 2023
Merged
Changes from 1 commit
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
cc1d9c6
better tests for keccak precompile
StanislavBreadless 7afd89d
better random tests
StanislavBreadless e84ea6e
added test to validate keccak output
koloz193 62d0ee7
added test to make sure upgradeIfNexessary worked as intended
koloz193 5234858
mined a few blocks to trigger keccak upgrade
koloz193 d695779
added in additional check to make sure the mock keccak was in use
koloz193 a4dc0d9
remove unneeded tests + make compilation work out of the box
StanislavBreadless 54c4a77
fix build scripts
StanislavBreadless File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Agree that it is non-trivial to integrate Echidna or other Fuzz tooling at the moment. But this test seems to me weird. data is always 32 bytes long. I would rather make a couple of randomly generated tests:
BLOCK_SIZE
- 2BLOCK_SIZE
- 1BLOCK_SIZE
BLOCK_SIZE
+ 1BLOCK_SIZE
+ 2It is to cover all possible variants of branching