From b1a4e73c602b027efcd8a72061445dcb1d5f2a74 Mon Sep 17 00:00:00 2001
From: fdai7723 <hendrik-soenke.voss@informatik.hs-fulda.de>
Date: Wed, 7 Feb 2024 15:26:45 +0000
Subject: [PATCH] =?UTF-8?q?Test=20f=C3=BCr=20L=C3=A4ufer,=20ob=20eine=20Fi?=
 =?UTF-8?q?gur=20im=20Weg=20steht,=20Hendrik=20Vo=C3=9F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 test/test_Laeufer.c | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/test/test_Laeufer.c b/test/test_Laeufer.c
index f6aee73..d4fd3b1 100644
--- a/test/test_Laeufer.c
+++ b/test/test_Laeufer.c
@@ -35,10 +35,19 @@ void test_Laeufer_input_imFeld(void){
 
 }
 
+void test_Laeufer_Weg_frei(void){
+    char** brett = Schachbrett_erstellen();
+    Player player = PLAYER_WHITE;
+    brett[2][2] = 'P'; 
+    assert(istzugerlaubt_Laeufer(brett, 1, 1, 3, 3, player)==false);
+    for (int i = 0; i < 8; i++) {
+        free(brett[i]);
+    }
+    free(brett);
+
+}
 
-// Tests Läufer
 
-// Ob eine Spielfigur die Bewegung blockiert