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

StdCheats.t.sol contains a mistyped test function #471

Closed
totomanov opened this issue Oct 25, 2023 · 1 comment · Fixed by #472
Closed

StdCheats.t.sol contains a mistyped test function #471

totomanov opened this issue Oct 25, 2023 · 1 comment · Fixed by #472

Comments

@totomanov
Copy link
Contributor

In StdCheats.t.sol there is a test case named tes_tDealToken which does not run as part of the test suite.

Here's a patch that fixes it:

diff --git a/test/StdCheats.t.sol b/test/StdCheats.t.sol
index d7b3517..e94923c 100644
--- a/test/StdCheats.t.sol
+++ b/test/StdCheats.t.sol
@@ -102,7 +102,7 @@ contract StdCheatsTest is Test {
         assertEq(address(this).balance, 1 ether);
     }
 
-    function tes_tDealToken() public {
+    function test_DealToken() public {
         Bar barToken = new Bar();
         address bar = address(barToken);
         deal(bar, address(this), 10000e18);
@totomanov totomanov changed the title StdCheats.t.sol contains a mistyped test case that does not run StdCheats.t.sol contains a mistyped test function which does not run as part of the test suite Oct 25, 2023
@totomanov totomanov changed the title StdCheats.t.sol contains a mistyped test function which does not run as part of the test suite StdCheats.t.sol contains a mistyped test function Oct 25, 2023
@mds1
Copy link
Collaborator

mds1 commented Oct 25, 2023

Great catch! Would you mind opening a PR with this fix?

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 a pull request may close this issue.

2 participants