diff --git a/build/test/cache/test_Spiellogik.c b/build/test/cache/test_Spiellogik.c index d773c0b..943986a 100644 --- a/build/test/cache/test_Spiellogik.c +++ b/build/test/cache/test_Spiellogik.c @@ -181,3 +181,27 @@ void test_lose_down_belegtesFeld(void){ ), (UNITY_UINT)(76), UNITY_DISPLAY_STYLE_INT); } + + + + + + + +void test_lose_left_freiesFeld(void){ + + int realU[20][20] = { 0 }; + + realU[5][12] = 4; + + int result = lose(realU, 'l'); + + + + UnityAssertEqualNumber((UNITY_INT)((0)), (UNITY_INT)((result)), ( + + ((void *)0) + + ), (UNITY_UINT)(86), UNITY_DISPLAY_STYLE_INT); + +} diff --git a/build/test/out/c/test_Spiellogik.o b/build/test/out/c/test_Spiellogik.o index 2a132e0..8fd7520 100644 Binary files a/build/test/out/c/test_Spiellogik.o and b/build/test/out/c/test_Spiellogik.o differ diff --git a/build/test/out/c/test_Spiellogik_runner.o b/build/test/out/c/test_Spiellogik_runner.o index 068e642..767dcdf 100644 Binary files a/build/test/out/c/test_Spiellogik_runner.o and b/build/test/out/c/test_Spiellogik_runner.o differ diff --git a/build/test/out/test_Spiellogik.out b/build/test/out/test_Spiellogik.out index 08f249e..0df5212 100755 Binary files a/build/test/out/test_Spiellogik.out and b/build/test/out/test_Spiellogik.out differ diff --git a/build/test/preprocess/files/test_Spiellogik.c b/build/test/preprocess/files/test_Spiellogik.c index d773c0b..943986a 100644 --- a/build/test/preprocess/files/test_Spiellogik.c +++ b/build/test/preprocess/files/test_Spiellogik.c @@ -181,3 +181,27 @@ void test_lose_down_belegtesFeld(void){ ), (UNITY_UINT)(76), UNITY_DISPLAY_STYLE_INT); } + + + + + + + +void test_lose_left_freiesFeld(void){ + + int realU[20][20] = { 0 }; + + realU[5][12] = 4; + + int result = lose(realU, 'l'); + + + + UnityAssertEqualNumber((UNITY_INT)((0)), (UNITY_INT)((result)), ( + + ((void *)0) + + ), (UNITY_UINT)(86), UNITY_DISPLAY_STYLE_INT); + +} diff --git a/build/test/results/test_Spiellogik.pass b/build/test/results/test_Spiellogik.pass index 3b47b41..99abc55 100644 --- a/build/test/results/test_Spiellogik.pass +++ b/build/test/results/test_Spiellogik.pass @@ -35,12 +35,16 @@ :line: 70 :message: '' :unity_test_time: 0 +- :test: test_lose_left_freiesFeld + :line: 81 + :message: '' + :unity_test_time: 0 :failures: [] :ignores: [] :counts: - :total: 8 - :passed: 8 + :total: 9 + :passed: 9 :failed: 0 :ignored: 0 :stdout: [] -:time: 0.0012350200004220824 +:time: 0.00133456000003207 diff --git a/build/test/results/test_Umgebung.pass b/build/test/results/test_Umgebung.pass index 402d66c..596cacc 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.0015680600008636247 +:time: 0.002255239999612968 diff --git a/build/test/results/test_test.pass b/build/test/results/test_test.pass index 7a20a41..1a38e09 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.0035386119998292997 +:time: 0.001537248000204272 diff --git a/build/test/runners/test_Spiellogik_runner.c b/build/test/runners/test_Spiellogik_runner.c index 82fd7cc..0d07196 100644 --- a/build/test/runners/test_Spiellogik_runner.c +++ b/build/test/runners/test_Spiellogik_runner.c @@ -18,6 +18,7 @@ extern void test_lose_up_belegtesFeld(void); extern void test_lose_up_Obererrand(void); extern void test_lose_down_freiesFeld(void); extern void test_lose_down_belegtesFeld(void); +extern void test_lose_left_freiesFeld(void); /*=======Mock Management=====*/ @@ -90,6 +91,7 @@ int main(void) run_test(test_lose_up_Obererrand, "test_lose_up_Obererrand", 53); run_test(test_lose_down_freiesFeld, "test_lose_down_freiesFeld", 62); run_test(test_lose_down_belegtesFeld, "test_lose_down_belegtesFeld", 70); + run_test(test_lose_left_freiesFeld, "test_lose_left_freiesFeld", 81); return UnityEnd(); } diff --git a/test/test_Spiellogik.c b/test/test_Spiellogik.c index ee19147..deb87e6 100644 --- a/test/test_Spiellogik.c +++ b/test/test_Spiellogik.c @@ -74,4 +74,14 @@ void test_lose_down_belegtesFeld(void){ int result = lose(realU, 'd'); TEST_ASSERT_EQUAL_INT(1, result); +} + +//Test zur Bewegung nach links + +void test_lose_left_freiesFeld(void){ + int realU[20][20] = { 0 }; + realU[5][12] = 4; + int result = lose(realU, 'l'); + + TEST_ASSERT_EQUAL_INT(0, result); } \ No newline at end of file