diff --git a/build/test/cache/test_Spiellogik.c b/build/test/cache/test_Spiellogik.c index 460cbc4..9764754 100644 --- a/build/test/cache/test_Spiellogik.c +++ b/build/test/cache/test_Spiellogik.c @@ -291,3 +291,21 @@ void test_lose_right_belegtesFeld(void){ ), (UNITY_UINT)(121), UNITY_DISPLAY_STYLE_INT); } + +void test_lose_right_rechterRand(void){ + + int realU[20][20] = { 0 }; + + realU[5][20] = 4; + + int result = lose(realU, 'l'); + + + + UnityAssertEqualNumber((UNITY_INT)((1)), (UNITY_INT)((result)), ( + + ((void *)0) + + ), (UNITY_UINT)(128), UNITY_DISPLAY_STYLE_INT); + +} diff --git a/build/test/out/c/test_Spiellogik.o b/build/test/out/c/test_Spiellogik.o index 7998dc5..1be7e69 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 d883fc0..e2376e3 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 9f84319..a9f8db7 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 460cbc4..9764754 100644 --- a/build/test/preprocess/files/test_Spiellogik.c +++ b/build/test/preprocess/files/test_Spiellogik.c @@ -291,3 +291,21 @@ void test_lose_right_belegtesFeld(void){ ), (UNITY_UINT)(121), UNITY_DISPLAY_STYLE_INT); } + +void test_lose_right_rechterRand(void){ + + int realU[20][20] = { 0 }; + + realU[5][20] = 4; + + int result = lose(realU, 'l'); + + + + UnityAssertEqualNumber((UNITY_INT)((1)), (UNITY_INT)((result)), ( + + ((void *)0) + + ), (UNITY_UINT)(128), UNITY_DISPLAY_STYLE_INT); + +} diff --git a/build/test/results/test_Spiellogik.pass b/build/test/results/test_Spiellogik.pass index 4b32173..492c916 100644 --- a/build/test/results/test_Spiellogik.pass +++ b/build/test/results/test_Spiellogik.pass @@ -55,12 +55,16 @@ :line: 115 :message: '' :unity_test_time: 0 +- :test: test_lose_right_rechterRand + :line: 123 + :message: '' + :unity_test_time: 0 :failures: [] :ignores: [] :counts: - :total: 13 - :passed: 13 + :total: 14 + :passed: 14 :failed: 0 :ignored: 0 :stdout: [] -:time: 0.0014685070000268752 +:time: 0.001713458999802242 diff --git a/build/test/results/test_Umgebung.pass b/build/test/results/test_Umgebung.pass index cbaef3b..4481fa3 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.001630110999030876 +:time: 0.00175995899917325 diff --git a/build/test/results/test_test.pass b/build/test/results/test_test.pass index fffc7ac..03eea24 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.0015618119996361202 +:time: 0.0014771749993087724 diff --git a/build/test/runners/test_Spiellogik_runner.c b/build/test/runners/test_Spiellogik_runner.c index 95f4998..cd6f2e8 100644 --- a/build/test/runners/test_Spiellogik_runner.c +++ b/build/test/runners/test_Spiellogik_runner.c @@ -23,6 +23,7 @@ extern void test_lose_left_belegtesFeld(void); extern void test_lose_left_linkerRand(void); extern void test_lose_right_freiesFeld(void); extern void test_lose_right_belegtesFeld(void); +extern void test_lose_right_rechterRand(void); /*=======Mock Management=====*/ @@ -100,6 +101,7 @@ int main(void) run_test(test_lose_left_linkerRand, "test_lose_left_linkerRand", 98); run_test(test_lose_right_freiesFeld, "test_lose_right_freiesFeld", 107); run_test(test_lose_right_belegtesFeld, "test_lose_right_belegtesFeld", 115); + run_test(test_lose_right_rechterRand, "test_lose_right_rechterRand", 123); return UnityEnd(); } diff --git a/test/test_Spiellogik.c b/test/test_Spiellogik.c index 5d99f7c..3db1e4d 100644 --- a/test/test_Spiellogik.c +++ b/test/test_Spiellogik.c @@ -118,5 +118,12 @@ void test_lose_right_belegtesFeld(void){ realU[5][13] = 3; int result = lose(realU, 'r'); + TEST_ASSERT_EQUAL_INT(1, result); +} +void test_lose_right_rechterRand(void){ + int realU[20][20] = { 0 }; + realU[5][N] = 4; + int result = lose(realU, 'l'); + TEST_ASSERT_EQUAL_INT(1, result); } \ No newline at end of file