From 45439a67952e334ee5bc927a80734cc9c0086ea9 Mon Sep 17 00:00:00 2001 From: Jannis Date: Tue, 7 Feb 2023 23:53:06 +0100 Subject: [PATCH] Unittest lose(left + freies Feld) --- build/test/cache/test_Spiellogik.c | 24 ++++++++++++++++++ build/test/out/c/test_Spiellogik.o | Bin 9984 -> 10512 bytes build/test/out/c/test_Spiellogik_runner.o | Bin 10688 -> 10904 bytes build/test/out/test_Spiellogik.out | Bin 61392 -> 61560 bytes build/test/preprocess/files/test_Spiellogik.c | 24 ++++++++++++++++++ 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 | 10 ++++++++ 10 files changed, 69 insertions(+), 5 deletions(-) diff --git a/build/test/cache/test_Spiellogik.c b/build/test/cache/test_Spiellogik.c index d773c0b..943986a 100644 --- a/build/test/cache/test_Spiellogik.c +++ b/build/test/cache/test_Spiellogik.c @@ -181,3 +181,27 @@ void test_lose_down_belegtesFeld(void){ ), (UNITY_UINT)(76), UNITY_DISPLAY_STYLE_INT); } + + + + + + + +void test_lose_left_freiesFeld(void){ + + int realU[20][20] = { 0 }; + + realU[5][12] = 4; + + int result = lose(realU, 'l'); + + + + UnityAssertEqualNumber((UNITY_INT)((0)), (UNITY_INT)((result)), ( + + ((void *)0) + + ), (UNITY_UINT)(86), UNITY_DISPLAY_STYLE_INT); + +} diff --git a/build/test/out/c/test_Spiellogik.o b/build/test/out/c/test_Spiellogik.o index 2a132e096148679ed6fae5453856da6a07165d7f..8fd75203334f92df4557ba729af77f07755dd680 100644 GIT binary patch delta 2227 zcmZ8iTWlLe6y4pd9j~3FS=;S;okzWXG%j^j5G8I%N!mg~jZjd6(~1Cc(&F+mYEnC* zd_alBLm+TtF8Lso(tzj(d?dlD6orR~L{WkMRG>l<coAAW=!BNJSupncX|hG9&Fg z&N=tY%$?oYXFEr_N8-{*Wa@?|WY{7l)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j@NPA<>(7j_4h({YRp&;xy5xnck7;PpA<6m)|zXC-!<6L7ixl)lP|ij7XPmOmMCH zVQlojiV>oFxMrJF`!%MCe#*6D68#4AM89ISEKz|KqH(VMPNIDfNqzJLpZ6M5`(aC$ zxazi4^)BaruJbxj!(>v|2ATGup49PSGHiJM7w+?4CVzsvd zuKme-oyR=YE=eA*_KKv}a5|+MAFz6jpY~Gr^Z+VEy;?u_VB?H++IKsv1}4*bZ@=X6 zYD2Rf$@~2Cv*R3prPq0N zrvfXvD8l);wnukYID~BW`M9+AM0T SQ8ybxg|fwroBe?4T>37bSn`+v diff --git a/build/test/out/c/test_Spiellogik_runner.o b/build/test/out/c/test_Spiellogik_runner.o index 068e64238be8fe0d3a70613965fcc06ee6d039f9..767dcdfb4384514717f99f708281507c75fb9a88 100644 GIT binary patch delta 1727 zcmZ9NT}&KR6vyY>VHXDZTDCHs{a{(xg((o0ron*+mXd~&h6f>t1=PUeF6kPiwd_l) z3Gh%FQyXhfnwF+%i%}zKHQ**q(yzCraOG}nH z${5rpTb+dfKjWfPO?K}30?hN+EfkY_M&pSSZKKhouOuQj*YQIz!yK~t^{1KeXe3_E z=jHtRXWNQ4;#r(k;8|@Se1(hJyU>nZu8`)SlbhhG8M*v2kD?E!x%$LJJU+699rZO_ zb*b8{Y~dwAy@d|9s{KZNHwE=Lwz^f81=#Pd)0|YIfVPoo|2)p{64$7NUr=x3H|`L; ziQwUnk}B*MJaf30tEY$#2h|1I`bCYX0>1~Gxxa;b&N~AC!Satw=LMmUHuRyuFB1P$^ORnoyj0*(+C+`O?^5+9foEw|i3I^&=ia47hk@;+6Z z$C;p^^t!AX6Sx{Qpc}Qy7FMHRe`OdR;&f$;@{(d1)^N4bU^(UJstPO3=Ck49!bp|D z4j16%sxb2w;UhjADl&hnv0m3%XA$=6VK|1f^NHKLGQu#zVG+*ectc$-f=fjKYi?$ z3!+7u39p}3e`VzB@}W%eCSosRqQ zN+-&M3|it7;@2Z!#&ALg%V1pPC0z%tZpQv z7$zJ7`3Mbslw`vqABIxxsH&;$eE95X&}CUAG0m4M)n%j*Q=*re^o(A1k6y*45}jHD zD|S(e8S`0^E{&KBM4Hc>Bij1bGaa2ZtxXIgjc0{8y;DA2{7R931#l?GN1j1XPM@4@ zG<(Ef3C1un9JTTo?>Pu3WV(Xt1B%wch*=Q(I7ObP=pek2=_2N?QS>+vi@>fjkYgzk zH_(*4)5-Yl5V8p3Rirk24oNx${T2@i!Hn!l$0n*N&mCBoX)~&)DB1$HTn~8(M{_3do2Fm#b)5DZ*Mm<95wNRQT*!pm{4vOB#CvpjT@`UafMLDeMrSvJRx|vPFyHI~b>$sj(#%?BgJN{t60#$GiH+oI!pHP2~dc5!WG!GB3M){wh|L1@HW`^m& z;50NO8>+x{Hl^2MfP>OUaAO~(Uq^ih5St(#py*CauY*#VHd1sq)We;d(%tv0dQg7rxvP;PbPTyo=E32#^-}0~91tSa$@qQH=V{Kt-XSk6`r}bQT8q z0Z}Q7z+_>7m|(py$bZu)nitxQCOGJ{69(FyLEg+O`f@^l<+QV28~kuq@tX)3D0cuQ4h``(VQz X;OjD#)e@8!1$fsMW%W*J%c1)VHN(%= diff --git a/build/test/out/test_Spiellogik.out b/build/test/out/test_Spiellogik.out index 08f249eec74d6765def7f55b830d317a912a3438..0df521241960ce3647970ae30c04d2f55146b51d 100755 GIT binary patch delta 18137 zcmZ`>30zfG{=dt+4<7qtd+;8QO%Oz65fM;PP|$~|;a0d6nw6IOQlpJMa!W)^JT;>Z zl~yy_WVz6yx#2QtWrj;;YKoPHTWU6=H5LEw@1AoXNb|p+kN3AP=bYbJ-nmr6dG&6i zx*}Q0{k|sUoaO6olKyTdkZAJ$dZS!`~ly zX?*I~A1d!gr2Vbv!9n}$mZ@(jav94s+agyCJw%`BbrV%H#aw(qt_esy28AIE9G)l z6CC$Yi41uJaii(AIY^RLe7yg5VDvA;U6mJI)mmo0B)KXNHvK1El0Nj4KvZk#I`1Q3 zVK66YEQ~)4;nEn7G@Av5IOR1g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iellogik.c b/build/test/preprocess/files/test_Spiellogik.c index d773c0b..943986a 100644 --- a/build/test/preprocess/files/test_Spiellogik.c +++ b/build/test/preprocess/files/test_Spiellogik.c @@ -181,3 +181,27 @@ void test_lose_down_belegtesFeld(void){ ), (UNITY_UINT)(76), UNITY_DISPLAY_STYLE_INT); } + + + + + + + +void test_lose_left_freiesFeld(void){ + + int realU[20][20] = { 0 }; + + realU[5][12] = 4; + + int result = lose(realU, 'l'); + + + + UnityAssertEqualNumber((UNITY_INT)((0)), (UNITY_INT)((result)), ( + + ((void *)0) + + ), (UNITY_UINT)(86), UNITY_DISPLAY_STYLE_INT); + +} diff --git a/build/test/results/test_Spiellogik.pass b/build/test/results/test_Spiellogik.pass index 3b47b41..99abc55 100644 --- a/build/test/results/test_Spiellogik.pass +++ b/build/test/results/test_Spiellogik.pass @@ -35,12 +35,16 @@ :line: 70 :message: '' :unity_test_time: 0 +- :test: test_lose_left_freiesFeld + :line: 81 + :message: '' + :unity_test_time: 0 :failures: [] :ignores: [] :counts: - :total: 8 - :passed: 8 + :total: 9 + :passed: 9 :failed: 0 :ignored: 0 :stdout: [] -:time: 0.0012350200004220824 +:time: 0.00133456000003207 diff --git a/build/test/results/test_Umgebung.pass b/build/test/results/test_Umgebung.pass index 402d66c..596cacc 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.0015680600008636247 +:time: 0.002255239999612968 diff --git a/build/test/results/test_test.pass b/build/test/results/test_test.pass index 7a20a41..1a38e09 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.0035386119998292997 +:time: 0.001537248000204272 diff --git a/build/test/runners/test_Spiellogik_runner.c b/build/test/runners/test_Spiellogik_runner.c index 82fd7cc..0d07196 100644 --- a/build/test/runners/test_Spiellogik_runner.c +++ b/build/test/runners/test_Spiellogik_runner.c @@ -18,6 +18,7 @@ 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); +extern void test_lose_left_freiesFeld(void); /*=======Mock Management=====*/ @@ -90,6 +91,7 @@ int main(void) 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); + run_test(test_lose_left_freiesFeld, "test_lose_left_freiesFeld", 81); return UnityEnd(); } diff --git a/test/test_Spiellogik.c b/test/test_Spiellogik.c index ee19147..deb87e6 100644 --- a/test/test_Spiellogik.c +++ b/test/test_Spiellogik.c @@ -74,4 +74,14 @@ void test_lose_down_belegtesFeld(void){ int result = lose(realU, 'd'); TEST_ASSERT_EQUAL_INT(1, result); +} + +//Test zur Bewegung nach links + +void test_lose_left_freiesFeld(void){ + int realU[20][20] = { 0 }; + realU[5][12] = 4; + int result = lose(realU, 'l'); + + TEST_ASSERT_EQUAL_INT(0, result); } \ No newline at end of file