Skip to content

Commit

Permalink
style(test): declare assertFalse before assertEq
Browse files Browse the repository at this point in the history
  • Loading branch information
OliverNChalk committed Apr 22, 2022
1 parent 99a36d8 commit 3c15901
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/Test.sol
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,14 @@ abstract contract Test is DSTest {
STD-ASSERTIONS
//////////////////////////////////////////////////////////////////////////*/

function assertFalse(bool data) internal virtual {
assertTrue(!data);
}

function assertFalse(bool data, string memory err) internal virtual {
assertTrue(!data, err);
}

function assertEq(bool a, bool b) internal {
if (a != b) {
emit log ("Error: a == b not satisfied [bool]");
Expand Down Expand Up @@ -180,14 +188,6 @@ abstract contract Test is DSTest {
}
}

function assertFalse(bool data) internal virtual {
assertTrue(!data);
}

function assertFalse(bool data, string memory err) internal virtual {
assertTrue(!data, err);
}

function assertApproxEqAbs(
uint256 a,
uint256 b,
Expand Down

0 comments on commit 3c15901

Please sign in to comment.