From 90f80c32b1e3c33ad262ac5a4e4381d14018f187 Mon Sep 17 00:00:00 2001 From: Ronja Awe Date: Wed, 1 Feb 2023 12:54:12 +0100 Subject: [PATCH] =?UTF-8?q?testfall=20f=C3=BCr=20verzweigungen=20hinzugef?= =?UTF-8?q?=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/c/test_labyrinth.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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