Browse Source

Create displayDisclaimer function

remotes/origin/feature/balance-operations
fdlt3817 2 years ago
parent
commit
be9cbd981e
  1. 20
      src/displayDisclaimer.c
  2. 7
      src/displayDisclaimer.h
  3. 6
      src/interestCalculator.c
  4. 9
      tests/test_updateCustomerAccountBalance.c

20
src/displayDisclaimer.c

@ -0,0 +1,20 @@
#include "displayDisclaimer.h"
void displayDisclaimer(){
printf(" W E L C O M E T O \n");
printf(" .______ .___ ___. _______.\n");
printf(" | _ \\ | \\/ | / |\n");
printf(" | |_) | | \\ / | | (----`\n");
printf(" | _ < | |\\/| | \\ \\ \n");
printf(" | |_) | | | | | .----) | \n");
printf(" |______/ |__| |__| |_______/ \n");
printf(" \n");
printf("B A N K M A N A G E M E N T S Y S T E M\n");
printf(":.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:.:\n");
printf("Created by Atharva, Can, Haytham, Julius, Shivam, and Yahya for AI1001.\n");
}
// int main(){
// displayDisclaimer();
// return 1;
// }

7
src/displayDisclaimer.h

@ -0,0 +1,7 @@
#ifndef DISPLAYDISCLAIMER_H_
#define DISPLAYDISCLAIMER_H_
#include <stdio.h>
void displayDisclaimer();
#endif

6
src/interestCalculator.c

@ -150,8 +150,8 @@ void initiateCalculator(){
} }
} }
int main(){
// int main(){
initiateCalculator();
// initiateCalculator();
}
// }

9
tests/test_updateCustomerAccountBalance.c

@ -54,5 +54,14 @@ void test_updateAvailableAccountBalanceSuccess(void){
TEST_ASSERT_TRUE(result[i]); TEST_ASSERT_TRUE(result[i]);
} }
}
void test_failOpenFile(void) {
/* Act and assert */
FILE *file = fopen("false_file_name", "r");
TEST_ASSERT_FALSE(file);
} }
#endif #endif
Loading…
Cancel
Save