github.com/ethereum-optimism/optimism@v1.7.2/packages/contracts-bedrock/test/periphery/drippie/dripchecks/CheckTrue.t.sol (about)

     1  // SPDX-License-Identifier: MIT
     2  pragma solidity 0.8.15;
     3  
     4  import { Test } from "forge-std/Test.sol";
     5  import { CheckTrue } from "src/periphery/drippie/dripchecks/CheckTrue.sol";
     6  
     7  /// @title  CheckTrueTest
     8  /// @notice Ensures that the CheckTrue DripCheck contract always returns true.
     9  contract CheckTrueTest is Test {
    10      /// @notice An instance of the CheckTrue contract.
    11      CheckTrue c;
    12  
    13      /// @notice Deploy the `CheckTrue` contract.
    14      function setUp() external {
    15          c = new CheckTrue();
    16      }
    17  
    18      /// @notice Fuzz the `check` function and assert that it always returns true.
    19      function testFuzz_always_true_succeeds(bytes memory input) external {
    20          assertEq(c.check(input), true);
    21      }
    22  }