Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions src/AssertWrapper.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "./AssertHelper.sol";

abstract contract AssertWrapper is AssertHelper {
function gt(uint256 a, uint256 b, string memory message) internal {
assertGt(a, b, message);
}

function lt(uint256 a, uint256 b, string memory message) internal {
assertLt(a, b, message);
}

function gte(uint256 a, uint256 b, string memory message) internal {
assertGte(a, b, message);
}

function lte(uint256 a, uint256 b, string memory message) internal {
assertLte(a, b, message);
}

function eq(uint256 a, uint256 b, string memory message) internal {
assertEq(a, b, message);
}

function neq(uint256 a, uint256 b, string memory message) internal {
assertNeq(a, b, message);
}

function t(bool a, string memory message) internal {
assertWithMsg(a, message);
}
}
4 changes: 2 additions & 2 deletions src/FuzzBase.sol
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ pragma solidity ^0.8.0;

import "./Logging.sol";
import "./Constants.sol";
import "./AssertHelper.sol";
import "./AssertWrapper.sol";
import "./ClampWrapper.sol";

abstract contract FuzzBase is AssertHelper, ClampWrapper, Logging, Constants {}
abstract contract FuzzBase is AssertWrapper, ClampWrapper, Logging, Constants {}