From ba4e80140f3b39921f9c32c3174a069bb53e063d Mon Sep 17 00:00:00 2001 From: Alistair Singh Date: Wed, 4 Oct 2023 08:07:35 +0200 Subject: [PATCH] even better messages and names for tests --- contracts/test/Counter.t.sol | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contracts/test/Counter.t.sol b/contracts/test/Counter.t.sol index 27c032c976..e905cf4e9d 100644 --- a/contracts/test/Counter.t.sol +++ b/contracts/test/Counter.t.sol @@ -68,7 +68,7 @@ contract CounterTest is Test { assertEq(value, index, "check counter set now"); if (index > 1) { value = counters.get(index - 1); - assertEq(value, index - 1, "check previous previous counter after the current set"); + assertEq(value, index - 1, "check previous counter after the current set"); } } for (uint16 index = 0; index < 32; index++) { @@ -78,7 +78,7 @@ contract CounterTest is Test { if (index > 1) { value = counters.get(index - 1); - assertEq(value, index, "check previous counter set after second set"); + assertEq(value, index, "check previous counter set after second iteration of set"); } } }