contracts/lib/forge-std/test/CommonBase.t.sol 1.3 K raw
1
// SPDX-License-Identifier: MIT
2
pragma solidity >=0.7.0 <0.9.0;
3
4
import {CommonBase} from "../src/Base.sol";
5
import {StdConstants} from "../src/StdConstants.sol";
6
import {Test} from "../src/Test.sol";
7
8
contract CommonBaseTest is Test {
9
    function testVmAddressValue() public pure {
10
        assertEq(VM_ADDRESS, address(StdConstants.VM));
11
    }
12
13
    function testConsoleValue() public pure {
14
        assertEq(CONSOLE, StdConstants.CONSOLE);
15
    }
16
17
    function testCreate2FactoryValue() public pure {
18
        assertEq(CREATE2_FACTORY, StdConstants.CREATE2_FACTORY);
19
    }
20
21
    function testDefaultSenderValue() public pure {
22
        assertEq(DEFAULT_SENDER, StdConstants.DEFAULT_SENDER);
23
    }
24
25
    function testDefaultTestContractValue() public pure {
26
        assertEq(DEFAULT_TEST_CONTRACT, StdConstants.DEFAULT_TEST_CONTRACT);
27
    }
28
29
    function testMulticall3AddressValue() public pure {
30
        assertEq(MULTICALL3_ADDRESS, address(StdConstants.MULTICALL3_ADDRESS));
31
    }
32
33
    function testSecp256k1OrderValue() public pure {
34
        assertEq(SECP256K1_ORDER, StdConstants.SECP256K1_ORDER);
35
    }
36
37
    function testUint256MaxValue() public pure {
38
        assertEq(UINT256_MAX, type(uint256).max);
39
    }
40
41
    function testVmValue() public pure {
42
        assertEq(address(vm), address(StdConstants.VM));
43
    }
44
}