// SPDX-License-Identifier: MIT OR Apache-2.0
pragma solidity ^0.8.18;

import "utils/Test.sol";

contract GetBlockTimestampTest is Test {
    function testGetTimestamp() public {
        uint256 timestamp = vm.getBlockTimestamp();
        assertEq(timestamp, 1, "timestamp should be 1");
    }

    function testGetTimestampWithWarp() public {
        assertEq(vm.getBlockTimestamp(), 1, "timestamp should be 1");
        vm.warp(10);
        assertEq(vm.getBlockTimestamp(), 10, "warp failed");
    }

    function testGetTimestampWithWarpFuzzed(uint32 jump) public {
        uint256 pre = vm.getBlockTimestamp();
        vm.warp(pre + jump);
        assertEq(vm.getBlockTimestamp(), pre + jump, "warp failed");
    }
}
