From f5b27d6ee1afcaf33114b5e4a08ff8f98eb6c95e Mon Sep 17 00:00:00 2001 From: JaredBorders Date: Thu, 14 Dec 2023 19:21:14 -0500 Subject: [PATCH] =?UTF-8?q?=E2=9C=85=20Add=20failing=20tests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/Credit.t.sol | 34 ++++++++++++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/test/Credit.t.sol b/test/Credit.t.sol index f6278fdf..8b13f732 100644 --- a/test/Credit.t.sol +++ b/test/Credit.t.sol @@ -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); } }