Statefull Fuzz Passed Instead Of failed. #359
Unanswered
lintianyuan666
asked this question in
Q&A
Replies: 2 comments 14 replies
-
I think you need to do |
Beta Was this translation helpful? Give feedback.
13 replies
-
In your Handler.t.sol try replacing
with
|
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
I wrote the invariant test suite of TSwap according to the course, but when testing the assert of weth, the course showed failed, but my test passed. I thought my code was wrong, but when I copied the test suite of TSwap from github and ran it locally, it still returned pass.
Here is my code below.
Invariant.t.sol
And Handler.t.sol
Here are the results of my forge test:
Beta Was this translation helpful? Give feedback.
All reactions