From 32b9416c4bfd5768c078fde903f999c966347e33 Mon Sep 17 00:00:00 2001 From: Jannis Date: Wed, 8 Feb 2023 00:39:27 +0100 Subject: [PATCH] Unittest lose(right + rechter Rand) --- build/test/cache/test_Spiellogik.c | 18 ++++++++++++++++++ build/test/out/c/test_Spiellogik.o | Bin 12672 -> 13200 bytes build/test/out/c/test_Spiellogik_runner.o | Bin 11768 -> 11992 bytes build/test/out/test_Spiellogik.out | Bin 62232 -> 62408 bytes build/test/preprocess/files/test_Spiellogik.c | 18 ++++++++++++++++++ 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 | 7 +++++++ 10 files changed, 54 insertions(+), 5 deletions(-) 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 7998dc53290d271e48ae1cdce7cb6063eefbf87c..1be7e693d901454dd4e357aa6cc916e5506476fc 100644 GIT binary patch delta 2487 zcmZ`*eQZ-z6o2>iwd-rQ(r&JIuS2$1+O-}1jAjKi-3U=2MiiYIuf+1RA0t#+WV52=R|)1pPxyhWif?!39)^BvKRqF!JGj@10BaF21C_@0{Q7 zch0%z-uLbs*)rBU7L~op$=0W;V6!7j#^9uqCL?gb9w)0|ZpUx!c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iPNLzM9>eI*(Ir0*pyt!X;#vKpef!2M`zHhDR@|un(lF=%UY9K z52p{Xe*K)jj7i$*l_sgrIP%_ZBn;sPO;JZVx`&-Ij+>ft^bJQR*|gld%UzYnw)@28 zzh&_^Yz-+7*Enjhs-K*Go#|Ulw^p)TKikd4w#ZGdXZb};&*gWsOLbch3%P>VEb#!> z=nfmujNS@GZRO}kwoV&1QQFDTMm8*gNlJS;nqsy6I7aC(M=!7gM)3=!Qyjg?;u#Yv z?~0Jdlpc|PmD=+YkQGxr6sN9_WNCjaKQ$~b*F2HFc3Quv>}( z^?_pC=fLB&A+q4b+qF@W@!~XnysO0DwNZJc$nLv<2X{y0p%Oc4!xW7!SJ~0m?94~H F`ycVyv8@0A diff --git a/build/test/out/test_Spiellogik.out b/build/test/out/test_Spiellogik.out index 9f84319c757fbe9aa8d02e5a58b3ad8f30614cd7..a9f8db7d714e7beb3273a5c85ef832a34d7d9a45 100755 GIT binary patch delta 17648 zcmaKU2Yggj_WvvMCYkg;nM@`PQXmOwl+Y7MAXEba8(5GcLXaX|ieacq3@G6W3m9EM zT^rWO3P=fv0*X?_AV_gRLlHqNxVq-|J@?)>DgHnI_xW(oxu>7o-+dD{e5)V+PG6Iv zt-M~@`hw4lZVG>9bYmfE8`~ctqWVX5A2mabFC8YT&EYCd&{wgI+QqO1jxUqqXZH0? z+7uDtUpxD$Hv;0vRq2|hM93UqbExG^k($j>UggcKH>jFT6MMc_4RcZsCbcz#mp
XVr zhQvQ`Q3XGes4-OZ3{#XfM?Sn881vtuMdeqERvTGe6{V>BP+fVBqU`chP+4tcaN5Vf zUWYny4DR!cGLou_wcP)B|i?SW6=%0mx(7jv+jncYfs-o_2V%_EACFD;Yf8R7Z&RVlWqoHU$zin_zwdrXiSRzi{m~QIYH& zhl7od3Ss9R;ac6#9;2T|1+iXH4)zmRGor$^`%RV)8|RGF^3u6K<_yug1ag1x{Y1Lz z8kP}d*IrK}wz`--<4m%|{#0Mjf|J77NoV}5X>oQQoR(N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I2`0`dj#gcr808JpiPIjvRqGMpFRp&!wjT*0^cc*Ml5wx4aP;*FmsaOR+~Y@W(U5k7g8(ldI4S z>9-m>?6>V#?c0*y_O@-S+Ggw-z;*p{V8mcln$VvhVUV6e`l!k&^-*-BA>C2vA2gInp%12{G~FttZTI*ilHYdUIuCx3;!rZngaf2!Jbz05 zm@+||{2(kgoSHljc<{H&;z^c*w!dbM1fS=RB9|kxAtp=yMma}K{#@y&?eFSUl7IVw z0xQ7VbnQg=(2u3~pd1};IV<>&X*s<4s}Tl^@q8)u+a4%>0zZa6)Ix@+SU9=Tw!g9Z zNq*al_%O+D`@?qzeRwk5kt3yTzkiG9+{ti#GNf@FReh9#PKA4xgXUhzE)&_Bt^b1b z^3wppe@6i24askN_wcdgx4l6=EctE!YUQNhcU9Wn3*L|h%VR`D^JChAqX;(=jt3`B zowd{UeZIBl&i~6&yZ_=@i*_ZKHvE$AW3FQxhtl`I48jVXd?h33fBxSbG~-G}a6KQt z@tE)jd+mlReKfU@E?mn}HHy97*Z$ONLZ=VSxSnON|3pyp>Fw)T>OeXN4evvOS4_z_ avg~6{2`Y?c+{p5o*(j*{Rl0aF>i+@XVrLNm 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