2022-07-16 11:36:29 +00:00
|
|
|
// SPDX-License-Identifier: UNLICENSED
|
2023-02-25 13:52:34 +00:00
|
|
|
pragma solidity >=0.8.19 <0.9.0;
|
2022-07-16 11:36:29 +00:00
|
|
|
|
2023-08-08 11:35:14 +00:00
|
|
|
import { Test, console } from "forge-std/Test.sol";
|
2022-07-16 11:36:29 +00:00
|
|
|
|
2023-09-07 08:21:11 +00:00
|
|
|
import { Deploy } from "../script/Deploy.s.sol";
|
|
|
|
import { DeploymentConfig } from "../script/DeploymentConfig.s.sol";
|
2023-05-23 18:45:52 +00:00
|
|
|
import { Foo } from "../src/Foo.sol";
|
|
|
|
|
2023-08-08 11:35:14 +00:00
|
|
|
contract FooTest is Test {
|
2023-05-26 08:51:58 +00:00
|
|
|
Foo internal foo;
|
2023-09-07 08:21:11 +00:00
|
|
|
DeploymentConfig internal deploymentConfig;
|
|
|
|
|
|
|
|
address internal deployer;
|
2023-05-23 18:45:52 +00:00
|
|
|
|
2023-04-01 06:46:18 +00:00
|
|
|
function setUp() public virtual {
|
2023-09-07 08:21:11 +00:00
|
|
|
Deploy deployment = new Deploy();
|
|
|
|
(foo, deploymentConfig) = deployment.run();
|
2022-07-16 11:36:29 +00:00
|
|
|
}
|
|
|
|
|
2023-01-07 09:47:59 +00:00
|
|
|
function test_Example() external {
|
2023-08-08 11:35:14 +00:00
|
|
|
console.log("Hello World");
|
2023-05-23 18:45:52 +00:00
|
|
|
uint256 x = 42;
|
|
|
|
assertEq(foo.id(x), x, "value mismatch");
|
2022-07-16 11:36:29 +00:00
|
|
|
}
|
|
|
|
}
|