Skip to content

Commit

Permalink
✅ Cleanup tests
Browse files Browse the repository at this point in the history
  • Loading branch information
transmissions11 committed Feb 3, 2022
1 parent 2f49eb1 commit 32edfe8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .gas-snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@ testFailPermitBadDeadline() (gas: 30486)
testFailPermitBadNonce() (gas: 30436)
testFailRedeemWithNoShareAmount() (gas: 7821)
testFailRedeemWithNotEnoughShareAmount() (gas: 172439)
testFailWithdrawWithNoUnderlyingAmount() (gas: 7814)
testFailWithdrawWithNoUnderlyingAmount() (gas: 7817)
testFailMintWithNoApproval() (gas: 52260)
testMetaData() (gas: 7078)
testFailDepositWithNotEnoughApproval() (gas: 123824)
testFailRedeemZero() (gas: 5645)
testFailWithdrawWithNotEnoughUnderlyingAmount() (gas: 172438)
testFailWithdrawWithNotEnoughUnderlyingAmount() (gas: 172441)
testFailDepositZero() (gas: 3212)
testMultipleMintDepositRedeemWithdraw() (gas: 1329710)
testWithdrawZero() (gas: 44405)
testMultipleMintDepositRedeemWithdraw() (gas: 1329713)
testWithdrawZero() (gas: 44408)
testFailDepositWithNoApproval() (gas: 52232)
testMintZero() (gas: 44692)
testSafeTransferFromToERC721Recipient() (gas: 885885)
Expand Down
2 changes: 1 addition & 1 deletion src/test/FixedPointMathLib.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ contract FixedPointMathLibTest is DSTestPlus {
if (y == 0 || (x != 0 && (x * 1e18) / 1e18 != x)) return;
}

assertEq(FixedPointMathLib.divWadUp(x, y), x * 1e18 == 0 ? 0 : (x * 1e18 - 1) / y + 1);
assertEq(FixedPointMathLib.divWadUp(x, y), x == 0 ? 0 : (x * 1e18 - 1) / y + 1);
}

function testFailDivWadUpOverflow(uint256 x, uint256 y) public pure {
Expand Down

0 comments on commit 32edfe8

Please sign in to comment.