From 5a1a43fdad01025ff68cf23c551982b07bdc851a Mon Sep 17 00:00:00 2001 From: Emman Mensdorf Date: Thu, 8 Feb 2024 14:08:54 +0100 Subject: [PATCH] test kein koenig, Emman Mensdorf --- test/test_PuzzleI.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/test_PuzzleI.c b/test/test_PuzzleI.c index 8a7e968..0eea3f6 100644 --- a/test/test_PuzzleI.c +++ b/test/test_PuzzleI.c @@ -20,4 +20,12 @@ void test_puzzlebrett_erstellen(void) { } +void test_loesung_abchecken_kein_Koenig(void) { + char** brett = Puzzlebrett_erstellen(); + // König entfernen + brett[7][1] = ' '; + TEST_ASSERT_FALSE(loesung_abchecken(brett)); + Puzzlebrettspeicher_freigeben(brett); +} + #endif // TEST \ No newline at end of file