ghost-dao-contracts/dependencies/forge-std-1.9.2/test/Vm.t.sol
Uncle Fatso 46b33b4c75
initial push for smart-contracts
Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
2025-04-28 14:17:04 +03:00

16 lines
607 B
Solidity

// SPDX-License-Identifier: MIT
pragma solidity >=0.8.0 <0.9.0;
import {Test} from "../src/Test.sol";
import {Vm, VmSafe} from "../src/Vm.sol";
contract VmTest is Test {
// This test ensures that functions are never accidentally removed from a Vm interface, or
// inadvertently moved between Vm and VmSafe. This test must be updated each time a function is
// added to or removed from Vm or VmSafe.
function test_interfaceId() public pure {
assertEq(type(VmSafe).interfaceId, bytes4(0x5c59cbde), "VmSafe");
assertEq(type(Vm).interfaceId, bytes4(0x1316b43e), "Vm");
}
}