FoundryTesting/test/HelloWorld.t.sol

18 lines
405 B
Solidity
Raw Normal View History

2023-08-20 03:44:09 +00:00
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;
import {Test, console2} from "forge-std/Test.sol";
import {HelloWorld} from "../src/HelloWorld.sol";
contract CounterTest is Test {
HelloWorld public helloWorld;
function setUp() public {
helloWorld = new HelloWorld();
}
function testGreet() public {
2023-08-24 06:19:29 +00:00
assertEq(helloWorld.greet(), "Hello World!");
2023-08-20 03:44:09 +00:00
}
}