diff --git a/build/test/cache/test_Spiellogik.c b/build/test/cache/test_Spiellogik.c index 943986a..a88a98f 100644 --- a/build/test/cache/test_Spiellogik.c +++ b/build/test/cache/test_Spiellogik.c @@ -205,3 +205,25 @@ void test_lose_left_freiesFeld(void){ ), (UNITY_UINT)(86), UNITY_DISPLAY_STYLE_INT); } + + + +void test_lose_left_belegtesFeld(void){ + + int realU[20][20] = { 0 }; + + realU[5][12] = 4; + + realU[5][11] = 3; + + int result = lose(realU, 'l'); + + + + UnityAssertEqualNumber((UNITY_INT)((1)), (UNITY_INT)((result)), ( + + ((void *)0) + + ), (UNITY_UINT)(95), UNITY_DISPLAY_STYLE_INT); + +} diff --git a/build/test/out/c/test_Spiellogik.o b/build/test/out/c/test_Spiellogik.o index 8fd7520..016c9d2 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 767dcdf..0af4ea9 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 0df5212..b39e669 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 943986a..a88a98f 100644 --- a/build/test/preprocess/files/test_Spiellogik.c +++ b/build/test/preprocess/files/test_Spiellogik.c @@ -205,3 +205,25 @@ void test_lose_left_freiesFeld(void){ ), (UNITY_UINT)(86), UNITY_DISPLAY_STYLE_INT); } + + + +void test_lose_left_belegtesFeld(void){ + + int realU[20][20] = { 0 }; + + realU[5][12] = 4; + + realU[5][11] = 3; + + int result = lose(realU, 'l'); + + + + UnityAssertEqualNumber((UNITY_INT)((1)), (UNITY_INT)((result)), ( + + ((void *)0) + + ), (UNITY_UINT)(95), UNITY_DISPLAY_STYLE_INT); + +} diff --git a/build/test/results/test_Spiellogik.pass b/build/test/results/test_Spiellogik.pass index 99abc55..8e328e4 100644 --- a/build/test/results/test_Spiellogik.pass +++ b/build/test/results/test_Spiellogik.pass @@ -39,12 +39,16 @@ :line: 81 :message: '' :unity_test_time: 0 +- :test: test_lose_left_belegtesFeld + :line: 89 + :message: '' + :unity_test_time: 0 :failures: [] :ignores: [] :counts: - :total: 9 - :passed: 9 + :total: 10 + :passed: 10 :failed: 0 :ignored: 0 :stdout: [] -:time: 0.00133456000003207 +:time: 0.0015318690002459334 diff --git a/build/test/results/test_Umgebung.pass b/build/test/results/test_Umgebung.pass index 596cacc..bc51d74 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.002255239999612968 +:time: 0.0016317859999617212 diff --git a/build/test/results/test_test.pass b/build/test/results/test_test.pass index 1a38e09..cb9c75e 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.001537248000204272 +:time: 0.0015538339994236594 diff --git a/build/test/runners/test_Spiellogik_runner.c b/build/test/runners/test_Spiellogik_runner.c index 0d07196..0c79e54 100644 --- a/build/test/runners/test_Spiellogik_runner.c +++ b/build/test/runners/test_Spiellogik_runner.c @@ -19,6 +19,7 @@ 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); +extern void test_lose_left_belegtesFeld(void); /*=======Mock Management=====*/ @@ -92,6 +93,7 @@ int main(void) 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); + run_test(test_lose_left_belegtesFeld, "test_lose_left_belegtesFeld", 89); return UnityEnd(); } diff --git a/test/test_Spiellogik.c b/test/test_Spiellogik.c index deb87e6..6c30c6b 100644 --- a/test/test_Spiellogik.c +++ b/test/test_Spiellogik.c @@ -84,4 +84,13 @@ void test_lose_left_freiesFeld(void){ int result = lose(realU, 'l'); TEST_ASSERT_EQUAL_INT(0, result); +} + +void test_lose_left_belegtesFeld(void){ + int realU[20][20] = { 0 }; + realU[5][12] = 4; + realU[5][11] = 3; + int result = lose(realU, 'l'); + + TEST_ASSERT_EQUAL_INT(1, result); } \ No newline at end of file