Browse Source

implement unittest for requestLoan.c

remotes/origin/feature/request-loan
fdai7514 2 years ago
parent
commit
a768d56463
  1. 1
      build-project.sh
  2. 8
      tests/test_requestLoan.c

1
build-project.sh

@ -1,4 +1,5 @@
clear clear
ceedling test:all
cd src/ cd src/
gcc main.c -o main gcc main.c -o main
./main ./main

8
tests/test_requestLoan.c

@ -2,7 +2,7 @@
#include "unity.h" #include "unity.h"
#include "requestLoan.h"
#include "requestLoan.c"
void setUp(void) void setUp(void)
{ {
@ -12,9 +12,11 @@ void tearDown(void)
{ {
} }
void test_requestLoan_NeedToImplement(void)
void test_requestLoan(void)
{ {
TEST_IGNORE_MESSAGE("Need to Implement requestLoan");
int e;
e = allow();
TEST_ASSERT_EQUAL_INT(1, e);
} }
#endif // TEST #endif // TEST
Loading…
Cancel
Save