Skip to content

Commit

Permalink
extra tests
Browse files Browse the repository at this point in the history
  • Loading branch information
SantiagoGregory committed Sep 15, 2023
1 parent 7d34699 commit 08cb51c
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 33 deletions.
50 changes: 25 additions & 25 deletions test/utils/Assertions.sol
Original file line number Diff line number Diff line change
@@ -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
//
//}
//
//
16 changes: 8 additions & 8 deletions test/utils/Events.sol
Original file line number Diff line number Diff line change
@@ -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;
// }
// }

0 comments on commit 08cb51c

Please sign in to comment.