From 843866621f1340cead3bc3670c6ea1ad30ea6246 Mon Sep 17 00:00:00 2001 From: Jannis Date: Tue, 7 Feb 2023 23:48:54 +0100 Subject: [PATCH] Unittest lose(down + belegtes Feld) --- build/test/cache/test_Spiellogik.c | 22 ++++++++++++++++++ build/test/out/c/test_Spiellogik.o | Bin 9432 -> 9984 bytes build/test/out/c/test_Spiellogik_runner.o | Bin 10472 -> 10688 bytes build/test/out/test_Spiellogik.out | Bin 61224 -> 61392 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 c52f47b..d773c0b 100644 --- a/build/test/cache/test_Spiellogik.c +++ b/build/test/cache/test_Spiellogik.c @@ -159,3 +159,25 @@ void test_lose_down_freiesFeld(void){ ), (UNITY_UINT)(67), UNITY_DISPLAY_STYLE_INT); } + + + +void test_lose_down_belegtesFeld(void){ + + int realU[20][20] = { 0 }; + + realU[10][12] = 4; + + realU[11][12] = 3; + + int result = lose(realU, 'd'); + + + + UnityAssertEqualNumber((UNITY_INT)((1)), (UNITY_INT)((result)), ( + + ((void *)0) + + ), (UNITY_UINT)(76), UNITY_DISPLAY_STYLE_INT); + +} diff --git a/build/test/out/c/test_Spiellogik.o b/build/test/out/c/test_Spiellogik.o index e7ef725fe31120a5afb475df73b7ae9c28638882..2a132e096148679ed6fae5453856da6a07165d7f 100644 GIT binary patch delta 1474 zcmZ`&YiLtR6uvWaZ*p%_>rK<<<|ZMJrn?PN8!eKHTB1d58WkU~(CzMz;3HahOGR7o z3AUi3{!qgaMN#7eMZ_O!6skW&S6q-~U0iliVOLR9)IW-_k4oL{OlGdefQNhe=A7?4 zbIu%Q?q>!U?2Y5W=!FS)2qbX3vgrNT7=Z$5M)RQ$HKWHcLZU0WWa)zu)ydXGRT$LB z%BsEri6FHU#GI2kAO{bYl!SYZ6*NZV(uPD8zy&ZU-$VpvEBWRQmdLEYK|+T;Sd!=` zNokEON&Z-W$(;+x5rf|qPs37MG2>H3yVge2Nd9m?gdAqw5nGo0D1&*9rn>t!F|mx; zP6-bYrN1a6Zct)@O$5t`QA+HziMlevayBWK7y-+i8UGZC)J%(_>8`1+j0gK@gN>5Q zm2#09_|Z9vyJX1gUhGEjhx*qzrAh61s%Xy?kGir@yrlt_m#<#e2U|RW;mv|So zvc0SOb6K``c4@9Rx01#>a=pu$s(8)w1hu-wRbWs{|IsmSZDsN5viM>dcGcfO+o0Q< zMwj8ZH-Xl`U9W+5!%J@#0c4DX`ARf$iY79vqCdMk&5$>Vn5UgEleZOQQm`n+Ey;y3I895jbJCnCnaTNs=Cl zJs7aiFuXJqt&ap77id>V3iU)0x3gjd=K5PSJ8c<6{YGt1g=ja1vt^>AFyuGfCo4p+ zK?{7W|DdA&KH)#C$odAscY&74cKtdrAiM2^@J)es+xOshAn~E=g>XDzfG?=PZP2sH?tfepJhw)Ch?09v^J!)+ibSfEZERsVQD;EY)D~4hqn}F z>FhZ}XDp68byyoqX+1hue+^e+mUcbNy*DtzJU92^FtyRrUU;}S9X2#tRp%qz`$?h) G4E+xRYVm<5sqppi9J zu@vcz%r%XfJmH`qq zN#8@0XsRGiQlexMi3;LACA_qg-Yi%_EK#DzBzzTwhfCTJ`(kyyBEV~RD>bfs($tS z#_CUR1gpu06%0p&A|3=@%;E_+DyH!XxFHJoJWPmv_%i$z)6$|oF+xv`6RD+9y8$KTf_6h*hf487Od{|Db_#LNHy diff --git a/build/test/out/c/test_Spiellogik_runner.o b/build/test/out/c/test_Spiellogik_runner.o index dd6295bb79eda1f04a7a33d2d4cc00cad2fdf03e..068e64238be8fe0d3a70613965fcc06ee6d039f9 100644 GIT binary patch delta 1076 zcmaKqUr1AN6vyxRUH9keC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UBF}CRU8$F4LP1&Dbd1 zgTeHnLx;H5v7svBjHM_fLd#mkMf|A7vvT8@J>)Wsc$Qx6{32+_b+KgajD7GB(g|Je zWUONc)kIbv=F7Z=!LrTc_7o+w5?Q(-A(G6IMT{o%R97*V%*k6Gd&GCNl398~MI@Dz zo3h>clTD)Feo7@TF`LShDz;L2TK8K&E7H178W`2{^n)LBdX6q=*w%CMLa$w%hIWeW TAY^CDsIshd!p^>+6_5P~Zor@l diff --git a/build/test/out/test_Spiellogik.out b/build/test/out/test_Spiellogik.out index 4cda3d29e4b6b78c7634a8942b78ea4781641892..08f249eec74d6765def7f55b830d317a912a3438 100755 GIT binary patch delta 15543 zcmaJ|2Y6If_J8-yyd)FS+a!}7QbeL>C04C{m;d69^(P1PBLR z)X1`y6(L;*zz9hEL%XaXvV%9{W0y!&QS-0%Osk9T^x=hk;8tUGI}J7-$a zMqP2GI_0cqawkQ9k~>j=NVoL$mt@~feME0zDN!X^LNBT3f_8qF^-|&6cYC$%Ie*rO zYk7-5ww!o((^Au8KEc<8qST*iXlSTE%da>1b%5LhDnt*e4u~DymgS+$jpEmTeHCTJ z{!f1Njrwhw9J>%12%Z3SNfJ`wZAG%z!io#vcVrX|zjf733cn zA)cZ1z({d{`r@DDS`rwUG0-H9C;b8AUeY+pWxUsr_J_3oi*!Yy!~QW|_VOEk zJGt%kneFLfU~BEg0Ax&l!7-E)6s=y!po2kHdNe2?B#8y~%A$K?>}|~nZD2B8tG`U% z!L4ZnG)J*!a>yGf>z}k9h1L)?Q2Lq^91!CBzqG!j?jiYfHaLzR2@a#MkbsaU{r-ou zbf^sx=SYNv(z_u6;v3o(5~RNLEBORJU>U=$M*WI)aZhW2=%tIzEbi&P_t}B}ZD=r& z)tc(l7pfoOAM`)lDd<6Kn0f5Ih6dUd8$=7Ou_GctT%W=X_T8-Hd(Q~jSpwyH4eXsy zG4}f}Q0V7W@N_C%0(<8aR`{9~Ql;5J=FVd79ui?z3JiT=q?P4=j-arr9^vPo|7V1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>K}}FRvO&($ZM}_P6Wzf^q29Dz zu%4BFx3AeQYx7gcbdHxS;4;Od6@2x9FYIJ7_en1o-Oi4(Gfu2ecj?TbrNVWeGD#Ka zY4&rw&W5bN;kq>Nu?Ht9Vt^}>c@E+ZG^i3K=rTwVuXjSPPTt~Qb_dq@)iXZN-2?hy z#VXOMw$I9;!WOTzYL(y0gw4s+Q8Bgd5-Ym4%57B~q=waQS@nWNd_x0Xdt6v)=WAuH zHE+)^H8D(86(MdZl(B9gzP&luy-9hmPgfte)^2(|v9-FfXYDs1UK8pwy=xED)|)AA zYjEwqH)n-Ffz+=@J6j&PaTpa9n@Y=byPLsZ5hwex!syQZ2EXMcVwS;gc~4nw@Qn*l zkm9-lZ8QY9HUIMU4iQ5i9^5H<)6_#5Dqi8&9ZDBAsy~z=3P{u^iQ$x7AFa;pO?~Qn zt0#NWvifx4O}px?9a_G5yp2;h5FKjyX=AIw$C2cHIK4y5i=kqHnHr#!8SBXCuEH-p z?Cy3pO*)+JZ29`ZA9+~Z^1Y6KrDFaE1=1035!}iRe#>vls|dZN~7+ogryX4)Y|D`LwY(-a_1PHryKm1?+7cwM|r40Vm(bg zY7PGwbbuPJc$OQ62G~unL0ZpJjMySWiUUz^KT`cstMh^pV^5IeVrA;>7lYsOqq_}* z%cIlsjV#OHZ|o`UU1wd6!FT<}OMsG5G9RAYDx{JZ2jFmgirw!Ed>zj{-kH z30K;eO9u$7x9Jq{A8YXZ-UxYppe{E_5K-CLkiW{jq5hECAb|5(E>7*;KhOO0NG zG{9T-Xl}mDAkw&t+NmDWc7}AiLrU+HK7A>I F{|9xCm#F{% diff --git a/build/test/preprocess/files/test_Spiellogik.c b/build/test/preprocess/files/test_Spiellogik.c index c52f47b..d773c0b 100644 --- a/build/test/preprocess/files/test_Spiellogik.c +++ b/build/test/preprocess/files/test_Spiellogik.c @@ -159,3 +159,25 @@ void test_lose_down_freiesFeld(void){ ), (UNITY_UINT)(67), UNITY_DISPLAY_STYLE_INT); } + + + +void test_lose_down_belegtesFeld(void){ + + int realU[20][20] = { 0 }; + + realU[10][12] = 4; + + realU[11][12] = 3; + + int result = lose(realU, 'd'); + + + + UnityAssertEqualNumber((UNITY_INT)((1)), (UNITY_INT)((result)), ( + + ((void *)0) + + ), (UNITY_UINT)(76), UNITY_DISPLAY_STYLE_INT); + +} diff --git a/build/test/results/test_Spiellogik.pass b/build/test/results/test_Spiellogik.pass index 9a97216..3b47b41 100644 --- a/build/test/results/test_Spiellogik.pass +++ b/build/test/results/test_Spiellogik.pass @@ -31,12 +31,16 @@ :line: 62 :message: '' :unity_test_time: 0 +- :test: test_lose_down_belegtesFeld + :line: 70 + :message: '' + :unity_test_time: 0 :failures: [] :ignores: [] :counts: - :total: 7 - :passed: 7 + :total: 8 + :passed: 8 :failed: 0 :ignored: 0 :stdout: [] -:time: 0.0018421029999444727 +:time: 0.0012350200004220824 diff --git a/build/test/results/test_Umgebung.pass b/build/test/results/test_Umgebung.pass index 50d1131..402d66c 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.001862872999481624 +:time: 0.0015680600008636247 diff --git a/build/test/results/test_test.pass b/build/test/results/test_test.pass index a246470..7a20a41 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.0018331499995838385 +:time: 0.0035386119998292997 diff --git a/build/test/runners/test_Spiellogik_runner.c b/build/test/runners/test_Spiellogik_runner.c index d565f88..82fd7cc 100644 --- a/build/test/runners/test_Spiellogik_runner.c +++ b/build/test/runners/test_Spiellogik_runner.c @@ -17,6 +17,7 @@ extern void test_lose_up_freiesFeld(void); extern void test_lose_up_belegtesFeld(void); extern void test_lose_up_Obererrand(void); extern void test_lose_down_freiesFeld(void); +extern void test_lose_down_belegtesFeld(void); /*=======Mock Management=====*/ @@ -88,6 +89,7 @@ int main(void) run_test(test_lose_up_belegtesFeld, "test_lose_up_belegtesFeld", 44); run_test(test_lose_up_Obererrand, "test_lose_up_Obererrand", 53); run_test(test_lose_down_freiesFeld, "test_lose_down_freiesFeld", 62); + run_test(test_lose_down_belegtesFeld, "test_lose_down_belegtesFeld", 70); return UnityEnd(); } diff --git a/test/test_Spiellogik.c b/test/test_Spiellogik.c index a8dd5ff..ee19147 100644 --- a/test/test_Spiellogik.c +++ b/test/test_Spiellogik.c @@ -66,3 +66,12 @@ void test_lose_down_freiesFeld(void){ TEST_ASSERT_EQUAL_INT(0, result); } + +void test_lose_down_belegtesFeld(void){ + int realU[20][20] = { 0 }; + realU[10][12] = 4; + realU[11][12] = 3; + int result = lose(realU, 'd'); + + TEST_ASSERT_EQUAL_INT(1, result); +} \ No newline at end of file