From 6688a336cac3188f255211b3974b576ccbff9aae Mon Sep 17 00:00:00 2001 From: Daniel M Date: Thu, 8 Feb 2024 11:53:02 +0100 Subject: [PATCH] Unittest02 --- .../test_duellist_spielesammlung_projekt.c | 32 ++++++++++++++++++ .../c/test_duellist_spielesammlung_projekt.o | Bin 10864 -> 11236 bytes ...t_duellist_spielesammlung_projekt_runner.o | Bin 7243 -> 7377 bytes .../test_duellist_spielesammlung_projekt.out | Bin 99175 -> 99225 bytes .../test_duellist_spielesammlung_projekt.c | 32 ++++++++++++++++++ .../test_duellist_spielesammlung_projekt.pass | 10 ++++-- ...t_duellist_spielesammlung_projekt_runner.c | 2 ++ .../test_duellist_spielesammlung_projekt.c | 13 +++++++ 8 files changed, 86 insertions(+), 3 deletions(-) diff --git a/build/test/cache/test_duellist_spielesammlung_projekt.c b/build/test/cache/test_duellist_spielesammlung_projekt.c index d8b83ae..ee92e9d 100644 --- a/build/test/cache/test_duellist_spielesammlung_projekt.c +++ b/build/test/cache/test_duellist_spielesammlung_projekt.c @@ -539,3 +539,35 @@ void test_calculate_mines_HeightWidthOne(void) ), (UNITY_UINT)(239), UNITY_DISPLAY_STYLE_INT); } + + + +void test_calculate_mines_HeightOne(void) + +{ + + + + int height = 1; + + int width = 5; + + int expected = 0; + + + + + + int result = calculate_mines(height, width); + + + + + + UnityAssertEqualNumber((UNITY_INT)((expected)), (UNITY_INT)((result)), ( + + ((void *)0) + + ), (UNITY_UINT)(253), UNITY_DISPLAY_STYLE_INT); + +} diff --git a/build/test/out/c/test_duellist_spielesammlung_projekt.o b/build/test/out/c/test_duellist_spielesammlung_projekt.o index ddd2a8d725007083dceec13977c1bb254da43584..948f353df11a42e1e7873de3dcee36678e7aa5a6 100644 GIT binary patch delta 2412 zcmZXWe@t6d6vxkPr7LCa=(ueKDrJ7ba#o-?T@*rnOjIU-*lR2)J1|uLY&zj?wry;$`yZzkn z_ndp~>$~^0^IbphweMgBAX`%{L0Cf6A87s3bqZq^CLBH6}$}BY)+w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20Jt+;Iu zyt-%L#i4dEy7Eiq#~%e|!l!N*WyKi)N@(TPSE@8W%AOcjjdypvCo@uh2k znCH)gEqrrb>a1&2$-)=sKrlNhZq`38-nYy6FvWdBapIEQV@xYUlm&ZuJurXV=)=Ba3rm!Hw|2j)rD$U04u{w()mzOib*NXjmlAG z%BAMETh6|!KbX(s1;)gIh*iFKVBc_h2)6Csy0?GLa60XX$b?61sa}v-ia8v*uy0f( zhl${2z)tL&l$OC>$4wyVxG5wZcMVC$Ex~2E4DUE>M$&N(X}^)S3RkC&+mS)kfuABh zsgi#n?H{6DUf2BqNoP!xW-M^EAtYVpIB8`*S6hjsa}Ogm<7gQUUy~TYXV?F6}}$UQ@@e<46h<*q=|gS?K^qO_Bw-6O3Af3QY5wH$g8TNNFUq9UveHFyQ! z9QHxH47h^5-0T7P9_^%}4VaAKchHSW1!OP^? z*{1Fv?XHQ@WSspXoMb%pXFeVaV7xpo@$ZP@7Su1kBw IgNE6E0dh?NBme*a diff --git a/build/test/out/c/test_duellist_spielesammlung_projekt_runner.o b/build/test/out/c/test_duellist_spielesammlung_projekt_runner.o index 847bb7abc3621ec40fa46fd7c2a25bd61a1eea94..0556a5a5bc5f5dd51fbdefc3334d3764a30ed0fd 100644 GIT binary patch delta 481 zcmX?YanX|3hmnT?1eS>~FxXDy6&L)%#K7={k%6H`5G>AMHPJMi@x{c2%B(d&nShBW z)mhK5GcX*O_*I#4=VVDnb+&(e3=B>plie8QI30i*<@gyG!Y1c3dNamN-pQ!W+9bfh zkg)kF<9#N{<1Q*3pMb^!X_gqEX~$VqK$g5H+(yi|tC{p_b0KW~oW z@Me*Y`2$pN3y39w>KW$<7nSD4m!uY#FfckyKENYt=`aZ>&NPuhBrh>H6)1Rx8N_7~ z$;r%1jn6C11qvMmI*Mr`2ZLx?YEfodWe8Ze)nq6vpxPTy| z7|6v8j(i-gOisM4%%V(3d01E&7&hAosxe940m=yhrP&xB16kH!)>|OUW^=mmMn+bU zxmJ^9MZ1}*nI<}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4mAkTVM8G2wl_4k|c&9JgNKz!S(x1rh>; zUF>`y#U2mDHbR(eVzo??OtZJ;rE`!v#h{tRI7qS0{R=?Y-;~;dUIrvc(FILF8Wk=6 zH;{6L)`6ZGSPT@TQy{^Y-T1izB*|(z7k`wIUshavQW4_ap2FUl#LIYIf&LGgomT6) zx%jah({HvFVHt4q{JTG`&}|k8@r;7N+3J>22MQ^(um~n8^s_*_rfAf3rU*LAIs0H) z1oBA1Sqg;B30nf!1K~J>U6S7bGEd>_UB;t}Ebiq<{>;-v`D6V(h?z5Rk859pf0*-+uRTny_mOcj?U5ga!ih@WD?Dgtt_ z#(sb<0uri-q8>;N?65?#4-Q8_ys$;GT~b1J0@iFP8mqHhQ(1A@g2IZuB|_wE z64$4V85N}#6BmF4DNJ+-)w9u#dk};#wU6-;kl8i%hzdJ7dnaY@80dg7ffhD@hobhexvckSoLf7Z8La+sMUlV8vzmT!ytFxuzn# zTt$|xU6h+Ur=+Z)kTY1dP~e(ihh4TA{w9z=tz(AC_EiI7Kla!X-^SFeS!Sd!8G;ts z46$Pl{-2CpavlPyvYO7VC={daw1&v+^u$lm53L-A1o>e1#aj`(d<_8UAP}|zu`J@< z1`y?TlnW$OmP?#UAR0wL%YbAkoUH@G+G%U*79ad^m`VY?15%u#_3sP6K7%pS3PG{e zUheZnb4&Azxy#lD;`u@Br*LaOvDm+c)(pjl z!t@v*Y?ZUA%>|-dWfzJZ`}Jo95S9R&)_Ne}iqyR>YT0u>_Z@)O1W;qymNMP}68lwF znjg7&&y-b|Fp?D^-tiT(3UDy#Vg|8e*)rb~oxato4Jj7}BnaQOwWU9h90ey6NO6t* zT*?D-Ug2{IkOBo~O(-CIJp8GxKraHaw& zs8%?84$vYil3QL;RBD>TX%uQJ!3k1~pjUugv}&t<8 diff --git a/build/test/preprocess/files/test_duellist_spielesammlung_projekt.c b/build/test/preprocess/files/test_duellist_spielesammlung_projekt.c index d8b83ae..ee92e9d 100644 --- a/build/test/preprocess/files/test_duellist_spielesammlung_projekt.c +++ b/build/test/preprocess/files/test_duellist_spielesammlung_projekt.c @@ -539,3 +539,35 @@ void test_calculate_mines_HeightWidthOne(void) ), (UNITY_UINT)(239), UNITY_DISPLAY_STYLE_INT); } + + + +void test_calculate_mines_HeightOne(void) + +{ + + + + int height = 1; + + int width = 5; + + int expected = 0; + + + + + + int result = calculate_mines(height, width); + + + + + + UnityAssertEqualNumber((UNITY_INT)((expected)), (UNITY_INT)((result)), ( + + ((void *)0) + + ), (UNITY_UINT)(253), UNITY_DISPLAY_STYLE_INT); + +} diff --git a/build/test/results/test_duellist_spielesammlung_projekt.pass b/build/test/results/test_duellist_spielesammlung_projekt.pass index 55e366f..3cd6a01 100644 --- a/build/test/results/test_duellist_spielesammlung_projekt.pass +++ b/build/test/results/test_duellist_spielesammlung_projekt.pass @@ -71,12 +71,16 @@ :line: 228 :message: '' :unity_test_time: 0 +- :test: test_calculate_mines_HeightOne + :line: 242 + :message: '' + :unity_test_time: 0 :failures: [] :ignores: [] :counts: - :total: 17 - :passed: 17 + :total: 18 + :passed: 18 :failed: 0 :ignored: 0 :stdout: [] -:time: 0.04556480000019292 +:time: 0.04488050000009025 diff --git a/build/test/runners/test_duellist_spielesammlung_projekt_runner.c b/build/test/runners/test_duellist_spielesammlung_projekt_runner.c index 5181808..250761f 100644 --- a/build/test/runners/test_duellist_spielesammlung_projekt_runner.c +++ b/build/test/runners/test_duellist_spielesammlung_projekt_runner.c @@ -27,6 +27,7 @@ extern void test_CurrentPlayer_returns_correct_player(void); extern void test_FieldEmpty_returns_true_for_empty_field(void); extern void test_FieldEmpty_returns_false_for_nonempty_field(void); extern void test_calculate_mines_HeightWidthOne(void); +extern void test_calculate_mines_HeightOne(void); /*=======Mock Management=====*/ @@ -108,6 +109,7 @@ int main(void) run_test(test_FieldEmpty_returns_true_for_empty_field, "test_FieldEmpty_returns_true_for_empty_field", 202); run_test(test_FieldEmpty_returns_false_for_nonempty_field, "test_FieldEmpty_returns_false_for_nonempty_field", 215); run_test(test_calculate_mines_HeightWidthOne, "test_calculate_mines_HeightWidthOne", 228); + run_test(test_calculate_mines_HeightOne, "test_calculate_mines_HeightOne", 242); return UnityEnd(); } diff --git a/src/test/test_duellist_spielesammlung_projekt.c b/src/test/test_duellist_spielesammlung_projekt.c index ee40e94..6104a4d 100644 --- a/src/test/test_duellist_spielesammlung_projekt.c +++ b/src/test/test_duellist_spielesammlung_projekt.c @@ -239,6 +239,19 @@ void test_calculate_mines_HeightWidthOne(void) TEST_ASSERT_EQUAL_INT(expected, result); } +void test_calculate_mines_HeightOne(void) +{ + /* arrange */ + int height = 1; + int width = 5; + int expected = 0; + + /* act */ + int result = calculate_mines(height, width); + + /* assert */ + TEST_ASSERT_EQUAL_INT(expected, result); +} #endif // TEST