27 lines
709 B
Solidity
Raw Permalink Normal View History

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