diff --git a/build/test/cache/test_Spiellogik.c b/build/test/cache/test_Spiellogik.c index ed73bb1..8688be9 100644 --- a/build/test/cache/test_Spiellogik.c +++ b/build/test/cache/test_Spiellogik.c @@ -117,3 +117,23 @@ void test_lose_up_belegtesFeld(void){ ), (UNITY_UINT)(50), UNITY_DISPLAY_STYLE_INT); } + + + +void test_lose_up_Obererrand(void){ + + int realU[20][20] = { 0 }; + + realU[0][12] = 4; + + int result = lose(realU, 'u'); + + + + UnityAssertEqualNumber((UNITY_INT)((1)), (UNITY_INT)((result)), ( + + ((void *)0) + + ), (UNITY_UINT)(58), UNITY_DISPLAY_STYLE_INT); + +} diff --git a/build/test/out/c/test_Spiellogik.o b/build/test/out/c/test_Spiellogik.o index f67ffd1..12dd3af 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 0e1b196..09b0755 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 3490b82..9f954b1 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 ed73bb1..8688be9 100644 --- a/build/test/preprocess/files/test_Spiellogik.c +++ b/build/test/preprocess/files/test_Spiellogik.c @@ -117,3 +117,23 @@ void test_lose_up_belegtesFeld(void){ ), (UNITY_UINT)(50), UNITY_DISPLAY_STYLE_INT); } + + + +void test_lose_up_Obererrand(void){ + + int realU[20][20] = { 0 }; + + realU[0][12] = 4; + + int result = lose(realU, 'u'); + + + + UnityAssertEqualNumber((UNITY_INT)((1)), (UNITY_INT)((result)), ( + + ((void *)0) + + ), (UNITY_UINT)(58), UNITY_DISPLAY_STYLE_INT); + +} diff --git a/build/test/results/test_Spiellogik.pass b/build/test/results/test_Spiellogik.pass index 22c2fb9..33dac8b 100644 --- a/build/test/results/test_Spiellogik.pass +++ b/build/test/results/test_Spiellogik.pass @@ -23,12 +23,16 @@ :line: 44 :message: '' :unity_test_time: 0 +- :test: test_lose_up_Obererrand + :line: 53 + :message: '' + :unity_test_time: 0 :failures: [] :ignores: [] :counts: - :total: 5 - :passed: 5 + :total: 6 + :passed: 6 :failed: 0 :ignored: 0 :stdout: [] -:time: 0.003247212000133004 +:time: 0.0013472800001181895 diff --git a/build/test/results/test_Umgebung.pass b/build/test/results/test_Umgebung.pass index c5794a7..b30f866 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.0012993589998586685 +:time: 0.0016389350003009895 diff --git a/build/test/results/test_test.pass b/build/test/results/test_test.pass index 409c4fd..8a1b6d2 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.0012410250001266832 +:time: 0.0016045089996623574 diff --git a/build/test/runners/test_Spiellogik_runner.c b/build/test/runners/test_Spiellogik_runner.c index de397de..2828dda 100644 --- a/build/test/runners/test_Spiellogik_runner.c +++ b/build/test/runners/test_Spiellogik_runner.c @@ -15,6 +15,7 @@ extern void test_feldFrei_Verhalten_bei_belegtem_Feld(void); 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); /*=======Mock Management=====*/ @@ -84,6 +85,7 @@ int main(void) run_test(test_feldFrei_Verhalten_bei_freiem_Feld, "test_feldFrei_Verhalten_bei_freiem_Feld", 27); 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); return UnityEnd(); } diff --git a/test/test_Spiellogik.c b/test/test_Spiellogik.c index 749100a..0cf74e5 100644 --- a/test/test_Spiellogik.c +++ b/test/test_Spiellogik.c @@ -47,5 +47,13 @@ void test_lose_up_belegtesFeld(void){ realU[9][12] = 3; int result = lose(realU, 'u'); + TEST_ASSERT_EQUAL_INT(1, result); +} + +void test_lose_up_Obererrand(void){ + int realU[20][20] = { 0 }; + realU[0][12] = 4; + int result = lose(realU, 'u'); + TEST_ASSERT_EQUAL_INT(1, result); } \ No newline at end of file