From 746e08943971de8c73d1b8e8cad9c741ff95948a Mon Sep 17 00:00:00 2001 From: Jannis Date: Tue, 7 Feb 2023 23:37:51 +0100 Subject: [PATCH] Unittest lose(up + Oberrand) --- build/test/cache/test_Spiellogik.c | 20 ++++++++++++++++++ build/test/out/c/test_Spiellogik.o | Bin 8376 -> 8904 bytes build/test/out/c/test_Spiellogik_runner.o | Bin 10056 -> 10264 bytes build/test/out/test_Spiellogik.out | Bin 60896 -> 61056 bytes build/test/preprocess/files/test_Spiellogik.c | 20 ++++++++++++++++++ build/test/results/test_Spiellogik.pass | 10 ++++++--- build/test/results/test_Umgebung.pass | 2 +- build/test/results/test_test.pass | 2 +- build/test/runners/test_Spiellogik_runner.c | 2 ++ test/test_Spiellogik.c | 8 +++++++ 10 files changed, 59 insertions(+), 5 deletions(-) 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 f67ffd1665b52da4100b79b30bcaabe1e0fb4066..12dd3af8dd44cfa4762923859ee2d63bfc16e02c 100644 GIT binary patch delta 1648 zcmZXUT}TvB6vyYz?&!|4Zth1r&VFk4u!gZIxN91_ENNsfq9vsj;>VIv__qVm%p@-56+al92BB;d3P!Q_Q&Y6VUh2hLOzyCS+oV&AkB061u z)z9zujPJO^Lx2zQ3+wQT1V{L(;jWDU-CJTzcU89@ju7g=9A#b5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f1^_~kZco+_IpzgcbrCjY4LA4M_Xyo7*Hfp$H6rh^|Rb#Od?NAt@mk*bf$Hpz}v z$|QeLkwX_ z4RK!<+0_Cz?P8XnxrO{Ols$EE2sZii7qf!@@*ktH_)A$K+a`!+nDByc!>yMFYU&`i z=}MmV+mr0`D+6thZWK!MS^U*JTU&#mo@LXn=4sD-z@EA~&{nZuFxRm2P-*>4P=zf1 NyF4|EP5dtT{{xH3P$mEX 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