Browse Source

implement unittest for displayMenuCalculator.c

remotes/origin/feature/display-menu-calculator
fdai7514 2 years ago
parent
commit
de05d331e0
  1. 1
      build-project.sh
  2. 10
      tests/test_displayMenuCalculator.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

10
tests/test_displayMenuCalculator.c

@ -2,7 +2,7 @@
#include "unity.h" #include "unity.h"
#include "displayMenuCalculator.h"
#include "displayMenuCalculator.c"
void setUp(void) void setUp(void)
{ {
@ -12,9 +12,13 @@ void tearDown(void)
{ {
} }
void test_displayMenuCalculator_NeedToImplement(void)
void test_displayMenuCalculator(void)
{ {
TEST_IGNORE_MESSAGE("Need to Implement displayMenuCalculator");
int e, a;
e = 1;
a = check();
TEST_ASSERT_EQUAL_INT(e, a);
} }
#endif // TEST #endif // TEST
Loading…
Cancel
Save