From 64fdb4f4e888b3c0052025b3bc0009fc83cdd6f2 Mon Sep 17 00:00:00 2001 From: Ricardo Guilherme Schmidt <3esmit@gmail.com> Date: Tue, 26 Sep 2023 02:41:52 -0300 Subject: [PATCH] lint --- test/MiniMeToken.t.sol | 33 +++++++++++++++++++++++++-------- 1 file changed, 25 insertions(+), 8 deletions(-) diff --git a/test/MiniMeToken.t.sol b/test/MiniMeToken.t.sol index 3684b42..a406034 100644 --- a/test/MiniMeToken.t.sol +++ b/test/MiniMeToken.t.sol @@ -86,7 +86,7 @@ contract TransferTest is MiniMeTokenTest { assertEq(minimeToken.balanceOf(accounts[0]), 6, "balance of sender should be reduced"); assertEq(minimeToken.balanceOf(accounts[1]), 4, "balance of receiver should be increased"); - vm.resumeGasMetering(); + vm.resumeGasMetering(); } function testTransfer() public { @@ -112,7 +112,6 @@ contract TransferTest is MiniMeTokenTest { assertEq(minimeToken.balanceOfAt(accounts[0], currentBlock), 10, "balance at original block should be correct"); vm.resumeGasMetering(); } - } contract AllowanceTest is MiniMeTokenTest { @@ -216,17 +215,35 @@ contract CreateCloneTokenTest is MiniMeTokenTest { assertEq(clone.totalSupplyAt(currentBlock), 7, "total supply at current block should be correct"); assertEq(clone.totalSupplyAt(nextBlock), 10, "total supply at next block should be correct"); - assertEq(clone.balanceOfAt(accounts[0], currentBlock), 7, "balance of account 0 at current block should be correct"); - assertEq(clone.balanceOfAt(accounts[1], currentBlock), 0, "balance of account 1 at current block should be correct"); - assertEq(clone.balanceOfAt(accounts[2], currentBlock), 0, "balance of account 2 at current block should be correct"); + assertEq( + clone.balanceOfAt(accounts[0], currentBlock), 7, "balance of account 0 at current block should be correct" + ); + assertEq( + clone.balanceOfAt(accounts[1], currentBlock), 0, "balance of account 1 at current block should be correct" + ); + assertEq( + clone.balanceOfAt(accounts[2], currentBlock), 0, "balance of account 2 at current block should be correct" + ); assertEq(clone.balanceOfAt(accounts[0], nextBlock), 7, "balance of account 0 at next block should be correct"); assertEq(clone.balanceOfAt(accounts[1], nextBlock), 3, "balance of account 1 at next block should be correct"); assertEq(clone.balanceOfAt(accounts[2], nextBlock), 0, "balance of account 2 at next block should be correct"); - assertEq(clone.balanceOfAt(accounts[0], secondNextBlock), 7, "balance of account 0 at second next block should be correct"); - assertEq(clone.balanceOfAt(accounts[1], secondNextBlock), 3, "balance of account 1 at second next block should be correct"); - assertEq(clone.balanceOfAt(accounts[2], secondNextBlock), 5, "balance of account 2 at second next block should be correct"); + assertEq( + clone.balanceOfAt(accounts[0], secondNextBlock), + 7, + "balance of account 0 at second next block should be correct" + ); + assertEq( + clone.balanceOfAt(accounts[1], secondNextBlock), + 3, + "balance of account 1 at second next block should be correct" + ); + assertEq( + clone.balanceOfAt(accounts[2], secondNextBlock), + 5, + "balance of account 2 at second next block should be correct" + ); vm.resumeGasMetering(); }