Browse Source

add no formular detected Test for getNumber Function

remotes/origin/Input_Handling
Sophia Weber 11 months ago
parent
commit
97163c8cce
  1. 8
      test/test_inputHandling.c

8
test/test_inputHandling.c

@ -7,9 +7,11 @@ char halloWelt[]="Hallo Welt";
char halloWelt2[]="Hallo Welt";
char halloWelt3[]="Ha llo W el t ";
char halloWelt4[]="Ha\n\nllo \r W el\r\r t ";
calc_op formula = {0};
void setUp(void)
{
formula.functionsType = opNotSupported;
}
void tearDown(void)
@ -85,4 +87,10 @@ void test_inputHandling_findEmptyFunctionType(void)
TEST_ASSERT_TRUE(opEmpty == type);
}
void test_inputHandling_getNumbersNoFormular(void)
{
char* pnt = NULL;
pnt = getNumbers(halloWelt, 10, &formula);
TEST_ASSERT_NULL(pnt);
}
#endif // TEST
Loading…
Cancel
Save