From 301bf440cb373559e9fbaaf4a13cdb608045c67a Mon Sep 17 00:00:00 2001 From: Jannis Date: Tue, 7 Feb 2023 23:26:55 +0100 Subject: [PATCH] Unittest lose(up + belegtesFeld) --- build/test/cache/test_Spiellogik.c | 22 ++++++++++++++++++ build/test/out/c/test_Spiellogik.o | Bin 7912 -> 8376 bytes build/test/out/c/test_Spiellogik_runner.o | Bin 9840 -> 10056 bytes build/test/out/test_Spiellogik.out | Bin 60776 -> 60896 bytes build/test/preprocess/files/test_Spiellogik.c | 22 ++++++++++++++++++ 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 | 9 +++++++ 10 files changed, 64 insertions(+), 5 deletions(-) diff --git a/build/test/cache/test_Spiellogik.c b/build/test/cache/test_Spiellogik.c index 7bf717f..ed73bb1 100644 --- a/build/test/cache/test_Spiellogik.c +++ b/build/test/cache/test_Spiellogik.c @@ -95,3 +95,25 @@ void test_lose_up_freiesFeld(void){ ), (UNITY_UINT)(41), UNITY_DISPLAY_STYLE_INT); } + + + +void test_lose_up_belegtesFeld(void){ + + int realU[20][20] = { 0 }; + + realU[10][12] = 4; + + realU[9][12] = 3; + + int result = lose(realU, 'u'); + + + + UnityAssertEqualNumber((UNITY_INT)((1)), (UNITY_INT)((result)), ( + + ((void *)0) + + ), (UNITY_UINT)(50), UNITY_DISPLAY_STYLE_INT); + +} diff --git a/build/test/out/c/test_Spiellogik.o b/build/test/out/c/test_Spiellogik.o index d4b11123de73a7e696e72e02287bf66eff18c08e..f67ffd1665b52da4100b79b30bcaabe1e0fb4066 100644 GIT binary patch delta 2417 zcmaJ@ZD<@t7@nECz1z*+BSalYz(Q_q&DfbX~=;>CH@d8gvP|An5K!B zAob5#rJ|y-=}SdRni#8?AllT3RKaSsBB@Xa7Hp-I7A!OcDHRJX6yiIxvu8R#9N3+C zp67j^d3R=*yX%`z<_@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tcWRXqBHrowBjYLsND?$rGg_b6wi8U>K z5mzeIx0>}}ZNfgZwMCnUYK%f(tOx-G!Tu@jz6gTQDzyI4hdxyCoI7{cc<;lx=ljn8 z?A?1WjNjV6P|>EHmCYA<-~z+dx|{(`dwBbOjj;gZVd7#WawOKTyZk?-g+m0iaDcWx zF!d@AKwU4oK_X5UhfoUj!{Ugqev~t!Y}A;L!x>p~FHNigFbBqO9AMRaNd|2FhI|{!AChSdY66*!iOpk3VX`|*=lW+*C!E8NTLgR1=vC+rO zQkX2g8z{*TA9E-`$AD6x>`W%>4o7Q*^T{MBQCJFQnlX!Sj3rIIFi@~~A{4jrKn*g} zY?wMW6z|~;)5Ln)%+bJBlfo>~hk#TpA?ui4UtW!5m&Bm5soihf#fhZ;1v37k{J#uKAYi6 z(uQJx82(6B_=Di2hMgnQ_pIW(1}~*-Cn>EzDAqTjm9n+l9F|iP{5brHu2tFCJ;gN$ zrGDGlFBA1hFMp_GFx782&q-@svHm4(W3Qal0kHqXbM! z{I|j%mW3m7_kRF?fMJFIM&g>-n|L$G!q??wPb&d_;oS=F7k*jc={}}4CwV`=f3T0P z_s9CoFYx|)1M+@>vkG69cv7ZfmQj zH=O6I)0ryQ@N!ui*kau4qfB`7Kxe?^HL$W{D5tVxhWDY-1dCbMVB%#Y)In4ek1k^) z;N)CwCI~xn4UO6GUany*ibt2RFQ9|Astt*J!+2Ia1dLsRU3r)1pp_rfY7w}aZ)kfW zbjv}dP$6|kp<%owAB-EYSa6Ln-Q>6ypi^*Rp%CWZf>U&jqU`({>?*pwC#2VR49Cj< E3&f!1uK)l5 diff --git a/build/test/out/c/test_Spiellogik_runner.o b/build/test/out/c/test_Spiellogik_runner.o index e24ebcaf87800b19412a4616dbf2e38b56035342..0e1b19604a6e6c9435c1c67735fb7e8a6aff6f2d 100644 GIT binary patch delta 1877 zcmZ{le`r%z6vywqY2te|w!TLD`qJ3uwMos2t}9W4Xj4U;jm(xnBg`pTYlAvUwKP%` zp)HEo&5GqvQ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mpBEA->cvVV< z1j|_9(eTJuxs^j%BBkaG*~kiyhP(d-DP=Pm3pzdKY;2Hx^XK&{Ay(**OG*EKu3gX# z#9v+@6wQ%lNPhd@x_tyc?SBp<^cw~_YX7;E!_;Hpk-1XZ{<9;Ubv_neN`K%=1u}mX ziIqu@kyhh73&zu!i}cLp`VM7TB`4*dc;UK?)ge~Bv}*t73tQOkW8vKzq_p+l;gFY4 zB)|Px=`8W78zC^oE5@U)#x21mjQ)3{TemvaW3Hu1uq5Yp;beH`0KNR(q{Pus!G(hs( z-+sTdr003P1^-d%@`^v8cmB BbVmRH diff --git a/build/test/preprocess/files/test_Spiellogik.c b/build/test/preprocess/files/test_Spiellogik.c index 7bf717f..ed73bb1 100644 --- a/build/test/preprocess/files/test_Spiellogik.c +++ b/build/test/preprocess/files/test_Spiellogik.c @@ -95,3 +95,25 @@ void test_lose_up_freiesFeld(void){ ), (UNITY_UINT)(41), UNITY_DISPLAY_STYLE_INT); } + + + +void test_lose_up_belegtesFeld(void){ + + int realU[20][20] = { 0 }; + + realU[10][12] = 4; + + realU[9][12] = 3; + + int result = lose(realU, 'u'); + + + + UnityAssertEqualNumber((UNITY_INT)((1)), (UNITY_INT)((result)), ( + + ((void *)0) + + ), (UNITY_UINT)(50), UNITY_DISPLAY_STYLE_INT); + +} diff --git a/build/test/results/test_Spiellogik.pass b/build/test/results/test_Spiellogik.pass index a92f4b3..22c2fb9 100644 --- a/build/test/results/test_Spiellogik.pass +++ b/build/test/results/test_Spiellogik.pass @@ -19,12 +19,16 @@ :line: 36 :message: '' :unity_test_time: 0 +- :test: test_lose_up_belegtesFeld + :line: 44 + :message: '' + :unity_test_time: 0 :failures: [] :ignores: [] :counts: - :total: 4 - :passed: 4 + :total: 5 + :passed: 5 :failed: 0 :ignored: 0 :stdout: [] -:time: 0.0011183120000168856 +:time: 0.003247212000133004 diff --git a/build/test/results/test_Umgebung.pass b/build/test/results/test_Umgebung.pass index 65c1103..c5794a7 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.0011495720000311849 +:time: 0.0012993589998586685 diff --git a/build/test/results/test_test.pass b/build/test/results/test_test.pass index f1acee8..409c4fd 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.0012508869999692251 +:time: 0.0012410250001266832 diff --git a/build/test/runners/test_Spiellogik_runner.c b/build/test/runners/test_Spiellogik_runner.c index 702f56e..de397de 100644 --- a/build/test/runners/test_Spiellogik_runner.c +++ b/build/test/runners/test_Spiellogik_runner.c @@ -14,6 +14,7 @@ extern void test_test1(void); 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); /*=======Mock Management=====*/ @@ -82,6 +83,7 @@ int main(void) run_test(test_feldFrei_Verhalten_bei_belegtem_Feld, "test_feldFrei_Verhalten_bei_belegtem_Feld", 19); 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); return UnityEnd(); } diff --git a/test/test_Spiellogik.c b/test/test_Spiellogik.c index 9aa2572..749100a 100644 --- a/test/test_Spiellogik.c +++ b/test/test_Spiellogik.c @@ -39,4 +39,13 @@ void test_lose_up_freiesFeld(void){ int result = lose(realU, 'u'); TEST_ASSERT_EQUAL_INT(0, result); +} + +void test_lose_up_belegtesFeld(void){ + int realU[20][20] = { 0 }; + realU[10][12] = 4; + realU[9][12] = 3; + int result = lose(realU, 'u'); + + TEST_ASSERT_EQUAL_INT(1, result); } \ No newline at end of file