Skip to content

Commit

Permalink
✅ Add failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JaredBorders committed Dec 15, 2023
1 parent 3654c30 commit f5b27d6
Showing 1 changed file with 32 additions and 2 deletions.
34 changes: 32 additions & 2 deletions test/Credit.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,42 @@ contract CreditTest is Bootstrap {

contract Deposit is CreditTest {
function test_deposit(uint256 amount) public {
assert(true);
// amount 0
// amount exceeds callers balance
// 0 < amount <= callers balance
assert(false);
}

function test_deposit_AccountDoesNotExist() public {
assert(false);
}

function test_deposit_event() public {
assert(false);
}
}

contract Withdraw is CreditTest {
function test_withdraw(uint256 amount) public {
assert(true);
// amount 0
// amount exceeds account's credit
// 0 < amount <= account's credit
assert(false);
}

function test_withdraw_Unauthorized() public {
assert(false);
}

function test_withdraw_event() public {
assert(false);
}

function test_withdraw_InsufficientBalance() public {
assert(false);
}

function test_withdraw_transfer_fails() public {
assert(false);
}
}

0 comments on commit f5b27d6

Please sign in to comment.