Skip to content

Commit

Permalink
add GasReporter to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TamaraRingas committed Aug 29, 2024
1 parent 32c87b3 commit 9ce92f9
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions packages/world-module-erc20-own-store/test/MUDERC20.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
pragma solidity ^0.8.20;

import { Test } from "forge-std/Test.sol";
import { console2 } from "forge-std/Console2.sol";
import { GasReporter } from "@latticexyz/gas-report/src/GasReporter.sol";

import { MUDERC20 } from "../src/MUDERC20.sol";
Expand All @@ -20,10 +21,12 @@ contract MUDERC20Test is Test, GasReporter {
function testMUDERC20SetUp() public {
startGasReport("MUDERC20 constructor");

assertEq(muderc20.decimals(), 18);
assertEq(muderc20.totalSupply(), 0);
assertEq(muderc20.name(), "MUDERC20");
assertEq(muderc20.symbol(), "MUD");
assertTrue(address(muderc20) != address(0));

assertEq(Token.getDecimals(), 18);
assertEq(Token.getTotalSupply(), 0);
assertEq(Token.getName(), "MUDERC20");
assertEq(Token.getSymbol(), "MUD");

endGasReport();
}
Expand Down

0 comments on commit 9ce92f9

Please sign in to comment.