diff --git a/build/test/cache/test_Spiellogik.c b/build/test/cache/test_Spiellogik.c index 8688be9..c52f47b 100644 --- a/build/test/cache/test_Spiellogik.c +++ b/build/test/cache/test_Spiellogik.c @@ -137,3 +137,25 @@ void test_lose_up_Obererrand(void){ ), (UNITY_UINT)(58), UNITY_DISPLAY_STYLE_INT); } + + + + + +void test_lose_down_freiesFeld(void){ + + int realU[20][20] = { 0 }; + + realU[10][12] = 4; + + int result = lose(realU, 'd'); + + + + UnityAssertEqualNumber((UNITY_INT)((0)), (UNITY_INT)((result)), ( + + ((void *)0) + + ), (UNITY_UINT)(67), UNITY_DISPLAY_STYLE_INT); + +} diff --git a/build/test/out/c/test_Spiellogik.o b/build/test/out/c/test_Spiellogik.o index 12dd3af..e7ef725 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 09b0755..dd6295b 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 9f954b1..4cda3d2 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 8688be9..c52f47b 100644 --- a/build/test/preprocess/files/test_Spiellogik.c +++ b/build/test/preprocess/files/test_Spiellogik.c @@ -137,3 +137,25 @@ void test_lose_up_Obererrand(void){ ), (UNITY_UINT)(58), UNITY_DISPLAY_STYLE_INT); } + + + + + +void test_lose_down_freiesFeld(void){ + + int realU[20][20] = { 0 }; + + realU[10][12] = 4; + + int result = lose(realU, 'd'); + + + + UnityAssertEqualNumber((UNITY_INT)((0)), (UNITY_INT)((result)), ( + + ((void *)0) + + ), (UNITY_UINT)(67), UNITY_DISPLAY_STYLE_INT); + +} diff --git a/build/test/results/test_Spiellogik.pass b/build/test/results/test_Spiellogik.pass index 33dac8b..9a97216 100644 --- a/build/test/results/test_Spiellogik.pass +++ b/build/test/results/test_Spiellogik.pass @@ -27,12 +27,16 @@ :line: 53 :message: '' :unity_test_time: 0 +- :test: test_lose_down_freiesFeld + :line: 62 + :message: '' + :unity_test_time: 0 :failures: [] :ignores: [] :counts: - :total: 6 - :passed: 6 + :total: 7 + :passed: 7 :failed: 0 :ignored: 0 :stdout: [] -:time: 0.0013472800001181895 +:time: 0.0018421029999444727 diff --git a/build/test/results/test_Umgebung.pass b/build/test/results/test_Umgebung.pass index b30f866..50d1131 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.0016389350003009895 +:time: 0.001862872999481624 diff --git a/build/test/results/test_test.pass b/build/test/results/test_test.pass index 8a1b6d2..a246470 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.0016045089996623574 +:time: 0.0018331499995838385 diff --git a/build/test/runners/test_Spiellogik_runner.c b/build/test/runners/test_Spiellogik_runner.c index 2828dda..d565f88 100644 --- a/build/test/runners/test_Spiellogik_runner.c +++ b/build/test/runners/test_Spiellogik_runner.c @@ -16,6 +16,7 @@ extern void test_feldFrei_Verhalten_bei_freiem_Feld(void); extern void test_lose_up_freiesFeld(void); extern void test_lose_up_belegtesFeld(void); extern void test_lose_up_Obererrand(void); +extern void test_lose_down_freiesFeld(void); /*=======Mock Management=====*/ @@ -86,6 +87,7 @@ int main(void) run_test(test_lose_up_freiesFeld, "test_lose_up_freiesFeld", 36); run_test(test_lose_up_belegtesFeld, "test_lose_up_belegtesFeld", 44); run_test(test_lose_up_Obererrand, "test_lose_up_Obererrand", 53); + run_test(test_lose_down_freiesFeld, "test_lose_down_freiesFeld", 62); return UnityEnd(); } diff --git a/test/test_Spiellogik.c b/test/test_Spiellogik.c index 0cf74e5..a8dd5ff 100644 --- a/test/test_Spiellogik.c +++ b/test/test_Spiellogik.c @@ -56,4 +56,13 @@ void test_lose_up_Obererrand(void){ int result = lose(realU, 'u'); TEST_ASSERT_EQUAL_INT(1, result); -} \ No newline at end of file +} + +//Tests zur Bewegung nach Unten +void test_lose_down_freiesFeld(void){ + int realU[20][20] = { 0 }; + realU[10][12] = 4; + int result = lose(realU, 'd'); + + TEST_ASSERT_EQUAL_INT(0, result); +}