From 14719d38ed1a92b021c8ffb9d70f595d44ea2423 Mon Sep 17 00:00:00 2001 From: Daniel M Date: Thu, 8 Feb 2024 13:05:29 +0100 Subject: [PATCH] Unittest12 --- .../test_duellist_spielesammlung_projekt.c | 32 ++++++++++++++++++ .../c/test_duellist_spielesammlung_projekt.o | Bin 15529 -> 15924 bytes ...t_duellist_spielesammlung_projekt_runner.o | Bin 8657 -> 8808 bytes .../test_duellist_spielesammlung_projekt.out | Bin 103305 -> 103876 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 903028f..3da31fc 100644 --- a/build/test/cache/test_duellist_spielesammlung_projekt.c +++ b/build/test/cache/test_duellist_spielesammlung_projekt.c @@ -899,3 +899,35 @@ void test_calculate_mines_HeightWidthRoundUp(void) ), (UNITY_UINT)(395), UNITY_DISPLAY_STYLE_INT); } + + + +void test_calculate_mines_HeightWidthNoRound(void) + +{ + + + + int height = 9; + + int width = 9; + + int expected = 20; + + + + + + int result = calculate_mines(height, width); + + + + + + UnityAssertEqualNumber((UNITY_INT)((expected)), (UNITY_INT)((result)), ( + + ((void *)0) + + ), (UNITY_UINT)(409), 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 893fdbda31c5836f8b4540cbf4c9e532f5ce3f2c..8a5e4e5770b83fc68c17e0c69716f6d33f81e814 100644 GIT binary patch delta 3211 zcmZXWd2AGQ6vy9hD8073+m>xh>9*Y-P@qbs&;u&a7Ftk?q4g*g48>3=M-MEA5Xh>r z2~i|0Kcg55X%GRcCe#HYL=(_(sDuEbs4++*G2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M&Tmi zv_dD#8=GFEqV~DS1~(miTn?h_O|OHjQy6+n>Qabc9)p1YY=J;m1v#zo^jnZ4Wsalh z7mzT86OTbMV21~iA8-e60uEsYvadNlAZZHAT{x<1LzyK7xdjWdi?XEe3t4=Z9uNxi zd0cHajUeY0)fg)EoQG;mh9G>oql>dZvdSDu5r~(<=~58B!LmEO355Ubef&+3C=k2O zQILgYj+RgPDzatbbMDOfg@U<6YMRINeJ^vVq8?@t-eeY|nfO|gTQEa-)K;_1k{oys{ikKm<)oR{8%XGy4!g72GVON8gG7PY`}gzG zg(B=as@r_w8Oxy7q9|?+2p)PJ!m~Jy*g#YZ}+yZi5;l#V8K*0)hOwOit$aV=tIo16v>o`s_Eg-!9_QFIz z^m#?-v>^Ov*BRiKAP9IScW9@fP`c4pkId=M7ZkxgLE+*=skH>5%Y$mQqED4^(w3Q* zwGkv3SNjCA6C^{Sa~LGI%yGng1yZIcvI%6SLg()=AhW`di$Ag{NVN3ne0Vw-0&s_# zKL^5p_E;2v#3|yn3?vacyeskpuM0q26n+u6qsUdm$t1^V>A+-;@Usu2lOW0|_!7t= zh40s`x$G{sf{az@bd*lKi28L8!0UrHFZcwLo1HHdD!ObEbPg&qXMpelXs_QKkis&@ zmM86LW-63^1XY!`Mukp9ARYpAZMEl0Nl;RTcPhwc#cr(##B6;S=MlimMUZAiVOv3XgzUX{H;8g9 zz8@%z5cVr3o0CwQsHoXFkYNhbcR-rj$YZ2pvghDw2>%(9*ka~;__Kv9QGK}EGPd3K F{{br8kE;Lx diff --git a/build/test/preprocess/files/test_duellist_spielesammlung_projekt.c b/build/test/preprocess/files/test_duellist_spielesammlung_projekt.c index 903028f..3da31fc 100644 --- a/build/test/preprocess/files/test_duellist_spielesammlung_projekt.c +++ b/build/test/preprocess/files/test_duellist_spielesammlung_projekt.c @@ -899,3 +899,35 @@ void test_calculate_mines_HeightWidthRoundUp(void) ), (UNITY_UINT)(395), UNITY_DISPLAY_STYLE_INT); } + + + +void test_calculate_mines_HeightWidthNoRound(void) + +{ + + + + int height = 9; + + int width = 9; + + int expected = 20; + + + + + + int result = calculate_mines(height, width); + + + + + + UnityAssertEqualNumber((UNITY_INT)((expected)), (UNITY_INT)((result)), ( + + ((void *)0) + + ), (UNITY_UINT)(409), 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 9051b5a..b0b51f0 100644 --- a/build/test/results/test_duellist_spielesammlung_projekt.pass +++ b/build/test/results/test_duellist_spielesammlung_projekt.pass @@ -111,12 +111,16 @@ :line: 384 :message: '' :unity_test_time: 0 +- :test: test_calculate_mines_HeightWidthNoRound + :line: 398 + :message: '' + :unity_test_time: 0 :failures: [] :ignores: [] :counts: - :total: 27 - :passed: 27 + :total: 28 + :passed: 28 :failed: 0 :ignored: 0 :stdout: [] -:time: 0.04867079999985435 +:time: 0.050488599999880535 diff --git a/build/test/runners/test_duellist_spielesammlung_projekt_runner.c b/build/test/runners/test_duellist_spielesammlung_projekt_runner.c index a2a4f25..2f16477 100644 --- a/build/test/runners/test_duellist_spielesammlung_projekt_runner.c +++ b/build/test/runners/test_duellist_spielesammlung_projekt_runner.c @@ -37,6 +37,7 @@ extern void test_calculate_mines_HeightZero(void); extern void test_calculate_mines_HeightWidthNumber(void); extern void test_calculate_mines_HeightWidthAgan(void); extern void test_calculate_mines_HeightWidthRoundUp(void); +extern void test_calculate_mines_HeightWidthNoRound(void); /*=======Mock Management=====*/ @@ -128,6 +129,7 @@ int main(void) run_test(test_calculate_mines_HeightWidthNumber, "test_calculate_mines_HeightWidthNumber", 356); run_test(test_calculate_mines_HeightWidthAgan, "test_calculate_mines_HeightWidthAgan", 370); run_test(test_calculate_mines_HeightWidthRoundUp, "test_calculate_mines_HeightWidthRoundUp", 384); + run_test(test_calculate_mines_HeightWidthNoRound, "test_calculate_mines_HeightWidthNoRound", 398); return UnityEnd(); } diff --git a/src/test/test_duellist_spielesammlung_projekt.c b/src/test/test_duellist_spielesammlung_projekt.c index cd8b858..283b843 100644 --- a/src/test/test_duellist_spielesammlung_projekt.c +++ b/src/test/test_duellist_spielesammlung_projekt.c @@ -395,4 +395,17 @@ void test_calculate_mines_HeightWidthRoundUp(void) TEST_ASSERT_EQUAL_INT(expected, result); } +void test_calculate_mines_HeightWidthNoRound(void) +{ + /* arrange */ + int height = 9; + int width = 9; + int expected = 20; + + /* act */ + int result = calculate_mines(height, width); + + /* assert */ + TEST_ASSERT_EQUAL_INT(expected, result); +} #endif // TEST