From 8461b8644f281d64cf74d046b92c260131854fbf Mon Sep 17 00:00:00 2001 From: Emman Mensdorf Date: Thu, 8 Feb 2024 14:10:37 +0100 Subject: [PATCH] test_PuzzleI.c koenig nicht bedroht, Emman Mensdorf --- test/test_PuzzleI.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/test_PuzzleI.c b/test/test_PuzzleI.c index 0eea3f6..ca05766 100644 --- a/test/test_PuzzleI.c +++ b/test/test_PuzzleI.c @@ -28,4 +28,13 @@ void test_loesung_abchecken_kein_Koenig(void) { Puzzlebrettspeicher_freigeben(brett); } +void test_loesung_abchecken_nicht_bedroht(void) { + char** brett = Puzzlebrett_erstellen(); + // König nicht bedroht + brett[7][4] = ' '; + print_Puzzlebrett(brett); + TEST_ASSERT_FALSE(loesung_abchecken(brett)); + Puzzlebrettspeicher_freigeben(brett); +} + #endif // TEST \ No newline at end of file