|
@ -1 +1,25 @@ |
|
|
|
|
|
|
|
|
|
|
|
#ifdef TEST |
|
|
|
|
|
#include "unity.h" |
|
|
|
|
|
#include "tictactoe.h" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void setUp(void){ |
|
|
|
|
|
//Wenn Funktion Vorraussetzungen braucht |
|
|
|
|
|
} |
|
|
|
|
|
void tearDown(void){ |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void test_if_not_identical(void){ |
|
|
|
|
|
/* arrange */ |
|
|
|
|
|
char result; |
|
|
|
|
|
char a = 'a', b = 'b', c = 'c'; |
|
|
|
|
|
|
|
|
|
|
|
result = checkLine(a, b, c); |
|
|
|
|
|
|
|
|
|
|
|
/* assert */ |
|
|
|
|
|
TEST_ASSERT_EQUAL_CHAR(' ', result); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#endif // TEST |