|
@ -68,6 +68,27 @@ void test_LabyrinthAmZiel2(void){ |
|
|
TEST_ASSERT_EQUAL_INT(-1, result); |
|
|
TEST_ASSERT_EQUAL_INT(-1, result); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void test_LabyrinthMarkiert(void){ |
|
|
|
|
|
|
|
|
|
|
|
char result; |
|
|
|
|
|
int input = 1; |
|
|
|
|
|
int hoehe = 3; |
|
|
|
|
|
int breite = 3; |
|
|
|
|
|
lab laby = { |
|
|
|
|
|
{'0', '1', '1'}, |
|
|
|
|
|
{'1', '1', '1'}, |
|
|
|
|
|
{'1', '1', '1'}, |
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
wegsuchen(laby, 0, 0, 0, 0); |
|
|
|
|
|
result = laby[0][0]; |
|
|
|
|
|
printlabyrinth(laby, hoehe, breite); |
|
|
|
|
|
TEST_ASSERT_EQUAL_CHAR('X', result); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
#endif // TEST |
|
|
#endif // TEST |