fuzz doesn't catch my invariant check #19
Unanswered
iftikharuddin
asked this question in
Q&A
Replies: 1 comment 3 replies
-
I think |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This is my
StatelessFuzzCatches
contract, where i set a condition that ifmyNumber == 40
it should return zero.Here is the Stateless Fuzz test i wrote:
When I run the test
forge test --match-test testFuzzCatchesBugStateless
the result is below:Why it didn't catch the randomNumber == 40 check? Should I increase the number of runs or am i doing anything incorrect.
Beta Was this translation helpful? Give feedback.
All reactions