-
Notifications
You must be signed in to change notification settings - Fork 29
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
test: replace DSTestFull with Test #38
Conversation
solidity/test/unit/Greeter.t.sol
Outdated
@@ -74,7 +76,7 @@ contract UnitGreeterSetGreeting is Base { | |||
function test_EmitEvent(string memory _greeting) public { | |||
vm.assume(keccak256(bytes(_greeting)) != _emptyString); | |||
|
|||
_expectEmitNoIndex(); | |||
vm.expectEmit(false, false, false, true); |
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.
Doesn't hurt to always check the indexed parameters and the source of the event.
vm.expectEmit(false, false, false, true); | |
vm.expectEmit(true, true, true, true, address(_greeter)); |
package.json
Outdated
@@ -33,9 +33,8 @@ | |||
}, | |||
"dependencies": { | |||
"ds-test": "github:dapphub/ds-test#e282159", |
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.
should this be remove as well?
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.
we cannot, because forge-std/Test.sol depends on this one
@@ -1,5 +1,4 @@ | |||
ds-test/=node_modules/ds-test/src |
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.
same here, should we remove this?
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.
I tried, it doesn't work
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.
but why?
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.
Closes BES-98
Closes BES-147