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
ceedling test:all
cd src/
gcc main.c -o main
./main

8
tests/test_requestLoan.c

@ -2,7 +2,7 @@
#include "unity.h"
#include "requestLoan.h"
#include "requestLoan.c"
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
Loading…
Cancel
Save