Skip to content

Commit

Permalink
Do not use assertNotEq
Browse files Browse the repository at this point in the history
  • Loading branch information
ferranbt committed Mar 1, 2024
1 parent da7e7ee commit a61f0f5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/Logs.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ contract TestLogs is Test {
assertEq(logs[0].data.length, 0);
assertEq(logs[1].data.length, 0);
for (uint256 i = 2; i < logs.length; i++) {
assertNotEq(logs[i].data.length, 0);
if (logs[i].data.length == 0) {
revert("data is empty")
}
}

// all of them have the same address (0x030)
Expand Down

0 comments on commit a61f0f5

Please sign in to comment.