From 2073a370f0dcbe0541507bc7a2010c290990a572 Mon Sep 17 00:00:00 2001 From: Jannis Date: Wed, 8 Feb 2023 00:22:17 +0100 Subject: [PATCH] Unittest lose( right + freiesFeld) --- build/test/results/test_Spiellogik.pass | 2 +- build/test/results/test_Umgebung.pass | 2 +- build/test/results/test_test.pass | 2 +- test/test_Spiellogik.c | 9 +++++++++ 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/build/test/results/test_Spiellogik.pass b/build/test/results/test_Spiellogik.pass index b1794ef..3925183 100644 --- a/build/test/results/test_Spiellogik.pass +++ b/build/test/results/test_Spiellogik.pass @@ -55,4 +55,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.00140369600012491 +:time: 0.001419748999978765 diff --git a/build/test/results/test_Umgebung.pass b/build/test/results/test_Umgebung.pass index 24e7edc..6b29c35 100644 --- a/build/test/results/test_Umgebung.pass +++ b/build/test/results/test_Umgebung.pass @@ -19,4 +19,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.0016821500003061374 +:time: 0.0015369510001619346 diff --git a/build/test/results/test_test.pass b/build/test/results/test_test.pass index 788e6a3..5f70c5d 100644 --- a/build/test/results/test_test.pass +++ b/build/test/results/test_test.pass @@ -15,4 +15,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.0015225039996948908 +:time: 0.0011366079997969791 diff --git a/test/test_Spiellogik.c b/test/test_Spiellogik.c index 3aa81ad..2cc5426 100644 --- a/test/test_Spiellogik.c +++ b/test/test_Spiellogik.c @@ -101,4 +101,13 @@ void test_lose_left_linkerRand(void){ int result = lose(realU, 'l'); TEST_ASSERT_EQUAL_INT(1, result); +} + +//Test zur Bewegung nach Rechts +void test_lose_right_freiesFeld(void){ + int realU[20][20] = { 0 }; + realU[5][12] = 4; + int result = lose(realU, 'r'); + + TEST_ASSERT_EQUAL_INT(0, result); } \ No newline at end of file