|
| 1 | +// SPDX-License-Identifier: MIT |
| 2 | +pragma solidity ^0.8.0; |
| 3 | + |
| 4 | +import "./AssertHelper.sol"; |
| 5 | + |
| 6 | +abstract contract AssertWrapper is AssertHelper { |
| 7 | + function gt(uint256 a, uint256 b, string memory message) internal { |
| 8 | + assertGt(a, b, message); |
| 9 | + } |
| 10 | + |
| 11 | + function lt(uint256 a, uint256 b, string memory message) internal { |
| 12 | + assertLt(a, b, message); |
| 13 | + } |
| 14 | + |
| 15 | + function gte(uint256 a, uint256 b, string memory message) internal { |
| 16 | + assertGte(a, b, message); |
| 17 | + } |
| 18 | + |
| 19 | + function lte(uint256 a, uint256 b, string memory message) internal { |
| 20 | + assertLte(a, b, message); |
| 21 | + } |
| 22 | + |
| 23 | + function eq(uint256 a, uint256 b, string memory message) internal { |
| 24 | + assertEq(a, b, message); |
| 25 | + } |
| 26 | + |
| 27 | + function neq(uint256 a, uint256 b, string memory message) internal { |
| 28 | + assertNeq(a, b, message); |
| 29 | + } |
| 30 | + |
| 31 | + function t(bool a, string memory message) internal { |
| 32 | + assertWithMsg(a, message); |
| 33 | + } |
| 34 | +} |
0 commit comments