Browse Source

implement unittest for calculatorGetUserInputFactorial.c

remotes/origin/feature/calculator-get-user-input-factorial
fdai7514 2 years ago
parent
commit
0e355995fc
  1. 1
      build-project.sh
  2. 9
      tests/test_calculatorGetUserInputFactorial.c

1
build-project.sh

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

9
tests/test_calculatorGetUserInputFactorial.c

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