Skip to content
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

Merged
merged 7 commits into from
Dec 4, 2023
Merged

Conversation

dristpunk
Copy link
Contributor

@dristpunk dristpunk commented Nov 28, 2023

Closes BES-98
Closes BES-147

Copy link

linear bot commented Nov 28, 2023

@dristpunk dristpunk self-assigned this Nov 28, 2023
@@ -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);
Copy link
Member

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.

Suggested change
vm.expectEmit(false, false, false, true);
vm.expectEmit(true, true, true, true, address(_greeter));

@gas1cent gas1cent requested review from wei3erHase and 0xng November 29, 2023 13:57
gas1cent
gas1cent previously approved these changes Nov 29, 2023
package.json Outdated
@@ -33,9 +33,8 @@
},
"dependencies": {
"ds-test": "github:dapphub/ds-test#e282159",
Copy link
Member

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?

Copy link
Contributor Author

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
Copy link
Member

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?

Copy link
Contributor Author

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

Copy link
Member

Choose a reason for hiding this comment

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

but why?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

but why?

because of the import in Test.sol
image

0xng
0xng previously approved these changes Nov 29, 2023
@dristpunk dristpunk dismissed stale reviews from 0xng and gas1cent via e27414d December 4, 2023 11:22
gas1cent
gas1cent previously approved these changes Dec 4, 2023
@gas1cent gas1cent merged commit 3137736 into main Dec 4, 2023
6 checks passed
@gas1cent gas1cent deleted the test/deprecate-dstestfull branch December 4, 2023 14:19
Copy link

linear bot commented Dec 5, 2023

xorsal pushed a commit that referenced this pull request Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants