diff --git a/build/test/cache/test_Spiellogik.c b/build/test/cache/test_Spiellogik.c index a88a98f..36cf2f8 100644 --- a/build/test/cache/test_Spiellogik.c +++ b/build/test/cache/test_Spiellogik.c @@ -227,3 +227,23 @@ void test_lose_left_belegtesFeld(void){ ), (UNITY_UINT)(95), UNITY_DISPLAY_STYLE_INT); } + + + +void test_lose_left_linkerRand(void){ + + int realU[20][20] = { 0 }; + + realU[5][0] = 4; + + int result = lose(realU, 'l'); + + + + UnityAssertEqualNumber((UNITY_INT)((1)), (UNITY_INT)((result)), ( + + ((void *)0) + + ), (UNITY_UINT)(103), UNITY_DISPLAY_STYLE_INT); + +} diff --git a/build/test/out/c/test_Spiellogik.o b/build/test/out/c/test_Spiellogik.o index 016c9d2..d97b5a7 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 0af4ea9..a378760 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 b39e669..8917992 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 a88a98f..36cf2f8 100644 --- a/build/test/preprocess/files/test_Spiellogik.c +++ b/build/test/preprocess/files/test_Spiellogik.c @@ -227,3 +227,23 @@ void test_lose_left_belegtesFeld(void){ ), (UNITY_UINT)(95), UNITY_DISPLAY_STYLE_INT); } + + + +void test_lose_left_linkerRand(void){ + + int realU[20][20] = { 0 }; + + realU[5][0] = 4; + + int result = lose(realU, 'l'); + + + + UnityAssertEqualNumber((UNITY_INT)((1)), (UNITY_INT)((result)), ( + + ((void *)0) + + ), (UNITY_UINT)(103), UNITY_DISPLAY_STYLE_INT); + +} diff --git a/build/test/results/test_Spiellogik.pass b/build/test/results/test_Spiellogik.pass index 8e328e4..b1794ef 100644 --- a/build/test/results/test_Spiellogik.pass +++ b/build/test/results/test_Spiellogik.pass @@ -43,12 +43,16 @@ :line: 89 :message: '' :unity_test_time: 0 +- :test: test_lose_left_linkerRand + :line: 98 + :message: '' + :unity_test_time: 0 :failures: [] :ignores: [] :counts: - :total: 10 - :passed: 10 + :total: 11 + :passed: 11 :failed: 0 :ignored: 0 :stdout: [] -:time: 0.0015318690002459334 +:time: 0.00140369600012491 diff --git a/build/test/results/test_Umgebung.pass b/build/test/results/test_Umgebung.pass index bc51d74..24e7edc 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.0016317859999617212 +:time: 0.0016821500003061374 diff --git a/build/test/results/test_test.pass b/build/test/results/test_test.pass index cb9c75e..788e6a3 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.0015538339994236594 +:time: 0.0015225039996948908 diff --git a/build/test/runners/test_Spiellogik_runner.c b/build/test/runners/test_Spiellogik_runner.c index 0c79e54..a1b48b6 100644 --- a/build/test/runners/test_Spiellogik_runner.c +++ b/build/test/runners/test_Spiellogik_runner.c @@ -20,6 +20,7 @@ extern void test_lose_down_freiesFeld(void); extern void test_lose_down_belegtesFeld(void); extern void test_lose_left_freiesFeld(void); extern void test_lose_left_belegtesFeld(void); +extern void test_lose_left_linkerRand(void); /*=======Mock Management=====*/ @@ -94,6 +95,7 @@ int main(void) run_test(test_lose_down_belegtesFeld, "test_lose_down_belegtesFeld", 70); run_test(test_lose_left_freiesFeld, "test_lose_left_freiesFeld", 81); run_test(test_lose_left_belegtesFeld, "test_lose_left_belegtesFeld", 89); + run_test(test_lose_left_linkerRand, "test_lose_left_linkerRand", 98); return UnityEnd(); } diff --git a/test/test_Spiellogik.c b/test/test_Spiellogik.c index 6c30c6b..3aa81ad 100644 --- a/test/test_Spiellogik.c +++ b/test/test_Spiellogik.c @@ -92,5 +92,13 @@ void test_lose_left_belegtesFeld(void){ realU[5][11] = 3; int result = lose(realU, 'l'); + TEST_ASSERT_EQUAL_INT(1, result); +} + +void test_lose_left_linkerRand(void){ + int realU[20][20] = { 0 }; + realU[5][0] = 4; + int result = lose(realU, 'l'); + TEST_ASSERT_EQUAL_INT(1, result); } \ No newline at end of file