ghost-exodus-draft/test/Counter.t.sol
Uncle Fatso ef11410879
Some checks failed
CI / Foundry project (push) Has been cancelled
initial commit
Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
2025-10-07 21:12:32 +03:00

25 lines
563 B
Solidity

// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;
import {Test, console} from "forge-std/Test.sol";
import {Counter} from "../src/Counter.sol";
contract CounterTest is Test {
Counter public counter;
function setUp() public {
counter = new Counter();
counter.setNumber(0);
}
function test_Increment() public {
counter.increment();
assertEq(counter.number(), 1);
}
function testFuzz_SetNumber(uint256 x) public {
counter.setNumber(x);
assertEq(counter.number(), x);
}
}