diff --git a/test/c/test_labyrinth.c b/test/c/test_labyrinth.c index 369501e..f19c08f 100644 --- a/test/c/test_labyrinth.c +++ b/test/c/test_labyrinth.c @@ -168,4 +168,23 @@ void test_LabyrinthLinks(void){ TEST_ASSERT_EQUAL_INT(1, result); } +void test_LabyrinthVerzweigung(void){ + + bool result; + int input = 1; + int hoehe = 5; + int breite = 6; + lab laby = { + {'0', '1', '0', '0', '0', '0'}, + {'0', '1', '0', '1', '1', '0'}, + {'0', '0', '0', '0', '1', '0'}, + {'0', '1', '1', '0', '1', '0'}, + {'0', '1', '0', '0', '1', '0'}, + }; + + wegsuchen(laby, &result, 0, 0, 4, 5); + printlabyrinth(laby, hoehe, breite); + TEST_ASSERT_EQUAL_INT(1, result); +} + #endif // TEST \ No newline at end of file