From d06b3c4a3bb9a10bce6527442a95b45e89e52abb Mon Sep 17 00:00:00 2001 From: Jannis Date: Tue, 7 Feb 2023 23:14:55 +0100 Subject: [PATCH] Unittest lose(Up + freiesFeld) --- build/test/cache/test_Spiellogik.c | 22 ++++++++++++++++++ build/test/out/c/test_Spiellogik.o | Bin 7224 -> 7912 bytes build/test/out/c/test_Spiellogik_runner.o | Bin 9632 -> 9840 bytes build/test/out/test_Spiellogik.out | Bin 60536 -> 60776 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 ++ src/Spiellogik.h | 1 + test/test_Spiellogik.c | 9 +++++++ 11 files changed, 65 insertions(+), 5 deletions(-) diff --git a/build/test/cache/test_Spiellogik.c b/build/test/cache/test_Spiellogik.c index 95eb8e9..7bf717f 100644 --- a/build/test/cache/test_Spiellogik.c +++ b/build/test/cache/test_Spiellogik.c @@ -73,3 +73,25 @@ void test_feldFrei_Verhalten_bei_freiem_Feld(void){ ), (UNITY_UINT)(32), UNITY_DISPLAY_STYLE_INT); } + + + + + +void test_lose_up_freiesFeld(void){ + + int realU[20][20] = { 0 }; + + realU[10][12] = 4; + + int result = lose(realU, 'u'); + + + + UnityAssertEqualNumber((UNITY_INT)((0)), (UNITY_INT)((result)), ( + + ((void *)0) + + ), (UNITY_UINT)(41), UNITY_DISPLAY_STYLE_INT); + +} diff --git a/build/test/out/c/test_Spiellogik.o b/build/test/out/c/test_Spiellogik.o index 88cf1b098c8b24ecf168244950de3077e03347bc..d4b11123de73a7e696e72e02287bf66eff18c08e 100644 GIT binary patch delta 2033 zcmZuxU2GIp6ux(6e`a=Oe`aR8)7iF^%HpCnT`+BzKUa)Vx*D4heb6SRkg(R8Cao5N z8bd1v&<9AD6DSxGHNgkb7-|DzVu_6=#h6$?O~E&eMvQ=I?1Lm=J!j_5S|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TlWOz61>qt;Mj`bMQ@Nn0$OyYSYD+mMKlQ_A}_4h3L5(K{vhmiQ=(1vM$ z3Nrx(ulgUsTWk&JI22GwH?Pf4Ao92eX97AIwy+aC9>e8;uHCe-Zu~^M76%nFYhgS* zp2OOpPF`Br?|kkR>7F27E2t)WEWdI@VF2Z0J C&$+h% diff --git a/build/test/out/test_Spiellogik.out b/build/test/out/test_Spiellogik.out index 740250bae201f102395f0f94b08775118046e09f..abfe44cdbab78a1b23bf305427498a0d13c93a58 100755 GIT binary patch delta 17331 zcmZ`>2YggT{(tj!-)1+3bdt@claP>34S^s56HE{^G$~So2MP#EFA6RYP-2J@hEw38 zqM{<=2}DmsN)V7DDosQ{Km-Xz1@#2${=dJOd7E;d|J;Z7>t$wsGjHB(yxS)&^`|V$ zQuWk})oEva`{in)^~>cUEX&a+NRoYOOIS8bC>|uq<}hEE{CvJjKNr@e!`ppMr$rw7 z;`v9?4g~}U#XP(^zjmo*t_)S|xl%cYp+)Nrds5a5(uy6P@rfKyjJswZ}S$eFc$3X5AQo#=L z>X3wywHoA+#Eqp#Vt}SCJFxrbz}Vjh6<1s;t}@zo)3oA>ef8rqG;OOtw86_3ypMso zi2-RmjJJkLX`EO35)TTE$+jW|(z*CIbdsb_SFg@^CH)vu5riKJj^`soec7jcd}xy1 zK8QaX+EafblOGFhqwfji3&KL#2p$sFll{R5g{A2|1WP~l2M-NP98p~L&yBx%JX;V( z`(Qr>tN8Ng;;Oy#B=R{6<)K;!a{bLX7u-UCY=xobWe^ zJDaeVe&;FSZ|Oh%Cd^MGqBKA9n=s!>3}H@5n&xYXE6i8_#xq(@Wv%&3EhF6lq%x|w zeBSMV87*a?-*1}^Zvea2lZ3ve@M{tZ=f_BxEKT+iS2*7ethlo1_719inz6o^o1H0? z_A6vCfP}>F4c4_H-YFv1f3ny5!P~qn;!c*p*G86 zjLALIS*AAN50B@{B21`P?Z1!&4%`)(W&Arr}>uz)Ybs zau+$9^|7=)PPU`@#;7=E@WWB9^;5b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n@e(II6D+(H*Wik47@41MLhdZ*r4)} zLdTd3`pHpM{N2Cqyee&8kXpv^&xrFENuSOe4u!dlgQUUr!Qv%rolmrJlK!LI+WJc` zy(GQUnOYes>0@Jr;44!85lL?o^fYC&WHd@f=Z}iFB)uVpkN9LKQ+U9qx3LsH2G45# z@~2_AirxBYriyF5i=Sq&Vs8H|Q@uZwmwh(S-uVDffZ`6o3{~-eeU`~g{L9ZW%R29c zb0HIm@pryjXpr>TeMG$SjH|4Z^lf2$#NiD5$X%QG4f~E9nxQgu;02 zv9LjZxn#g9Aa3U~ktXS#f8_L*bmaP2nA#G~*Br}G7l!eJ$1)toU3`oTZ>*GkC5s0h z?_c7tIFvb6k|)7NDbo3`4&IRT^Cd#i*i-(^-##8T=#=D6m6zVrq&2#_puu!LTC_=e z=htNr5BNOH)dgEjfMQoFs)QK`>#YyyWKAAA+-HtEB)#*`&sDmeK;^95eT;L+GD%Ur-;jd z>zfAs&{tJAB=V;&^|0RkoZv3!2QKxrUU^CMin#T1PitnA=uPE=F85TQ|A;TX+{aqE ePnzQgAkut7^laSvV^6P7&WYarj6Zcg>i+@CqpX7f diff --git a/build/test/preprocess/files/test_Spiellogik.c b/build/test/preprocess/files/test_Spiellogik.c index 95eb8e9..7bf717f 100644 --- a/build/test/preprocess/files/test_Spiellogik.c +++ b/build/test/preprocess/files/test_Spiellogik.c @@ -73,3 +73,25 @@ void test_feldFrei_Verhalten_bei_freiem_Feld(void){ ), (UNITY_UINT)(32), UNITY_DISPLAY_STYLE_INT); } + + + + + +void test_lose_up_freiesFeld(void){ + + int realU[20][20] = { 0 }; + + realU[10][12] = 4; + + int result = lose(realU, 'u'); + + + + UnityAssertEqualNumber((UNITY_INT)((0)), (UNITY_INT)((result)), ( + + ((void *)0) + + ), (UNITY_UINT)(41), UNITY_DISPLAY_STYLE_INT); + +} diff --git a/build/test/results/test_Spiellogik.pass b/build/test/results/test_Spiellogik.pass index 01e1ece..a92f4b3 100644 --- a/build/test/results/test_Spiellogik.pass +++ b/build/test/results/test_Spiellogik.pass @@ -15,12 +15,16 @@ :line: 27 :message: '' :unity_test_time: 0 +- :test: test_lose_up_freiesFeld + :line: 36 + :message: '' + :unity_test_time: 0 :failures: [] :ignores: [] :counts: - :total: 3 - :passed: 3 + :total: 4 + :passed: 4 :failed: 0 :ignored: 0 :stdout: [] -:time: 0.0012968020000698743 +:time: 0.0011183120000168856 diff --git a/build/test/results/test_Umgebung.pass b/build/test/results/test_Umgebung.pass index d613774..65c1103 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.0011922139997295744 +:time: 0.0011495720000311849 diff --git a/build/test/results/test_test.pass b/build/test/results/test_test.pass index f1d7be2..f1acee8 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.002588016000117932 +:time: 0.0012508869999692251 diff --git a/build/test/runners/test_Spiellogik_runner.c b/build/test/runners/test_Spiellogik_runner.c index 05950ca..702f56e 100644 --- a/build/test/runners/test_Spiellogik_runner.c +++ b/build/test/runners/test_Spiellogik_runner.c @@ -13,6 +13,7 @@ extern void tearDown(void); 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); /*=======Mock Management=====*/ @@ -80,6 +81,7 @@ int main(void) run_test(test_test1, "test_test1", 12); 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); return UnityEnd(); } diff --git a/src/Spiellogik.h b/src/Spiellogik.h index 224e691..54eed4d 100644 --- a/src/Spiellogik.h +++ b/src/Spiellogik.h @@ -5,5 +5,6 @@ int probe(int input); int feldFrei(int realU[N][N], int ii, int jj); +int lose(int realU[N][N], char richtung); #endif \ No newline at end of file diff --git a/test/test_Spiellogik.c b/test/test_Spiellogik.c index 2d28061..9aa2572 100644 --- a/test/test_Spiellogik.c +++ b/test/test_Spiellogik.c @@ -31,3 +31,12 @@ void test_feldFrei_Verhalten_bei_freiem_Feld(void){ TEST_ASSERT_EQUAL_INT(1, result); } + +//Tests zur Bewegung nach oben +void test_lose_up_freiesFeld(void){ + int realU[20][20] = { 0 }; + realU[10][12] = 4; + int result = lose(realU, 'u'); + + TEST_ASSERT_EQUAL_INT(0, result); +} \ No newline at end of file