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