From 08cb51c9d09799c74ea543041bbe45e3ee8d370f Mon Sep 17 00:00:00 2001 From: = Date: Fri, 15 Sep 2023 19:09:46 -0400 Subject: [PATCH] extra tests --- test/utils/Assertions.sol | 50 +++++++++++++++++++-------------------- test/utils/Events.sol | 16 ++++++------- 2 files changed, 33 insertions(+), 33 deletions(-) diff --git a/test/utils/Assertions.sol b/test/utils/Assertions.sol index a111eafc..8ca38257 100644 --- a/test/utils/Assertions.sol +++ b/test/utils/Assertions.sol @@ -1,25 +1,25 @@ - -//Assert balances are correct after new loan is created -modifier newLoanAssertions() { - - uint256 borrowerBalance; - - _; - - //Assert updated balances are correct - -} - - -//Assert balances are correct after loan is repaid -modifier repayAssertions() { - - uint256 borrowerBalance; - - _; - - //Assert updated balances are correct - -} - - +// +////Assert balances are correct after new loan is created +//modifier newLoanAssertions() { +// +// uint256 borrowerBalance; +// +// _; +// +// //Assert updated balances are correct +// +//} +// +// +////Assert balances are correct after loan is repaid +//modifier repayAssertions() { +// +// uint256 borrowerBalance; +// +// _; +// +// //Assert updated balances are correct +// +//} +// +// diff --git a/test/utils/Events.sol b/test/utils/Events.sol index 276cc541..a51138ae 100644 --- a/test/utils/Events.sol +++ b/test/utils/Events.sol @@ -1,8 +1,8 @@ - - bytes32 lienOpenTopic = bytes32(0x57cb72d73c48fadf55428537f6c9efbe080ae111339b0c5af42d9027ed20ba17); - for (uint256 i = 0; i < logs.length; i++) { - if (logs[i].topics[0] == lienOpenTopic) { - (loanId, loan) = abi.decode(logs[i].data, (uint256, LoanManager.Loan)); - break; - } - } +// +// bytes32 lienOpenTopic = bytes32(0x57cb72d73c48fadf55428537f6c9efbe080ae111339b0c5af42d9027ed20ba17); +// for (uint256 i = 0; i < logs.length; i++) { +// if (logs[i].topics[0] == lienOpenTopic) { +// (loanId, loan) = abi.decode(logs[i].data, (uint256, LoanManager.Loan)); +// break; +// } +// }