From 88b2e0d874e1158999a95f7bcf0309f71549fde5 Mon Sep 17 00:00:00 2001 From: David PC Saiz Date: Thu, 9 Feb 2023 22:59:56 +0100 Subject: [PATCH] Erster Unit Test --- build/test/cache/test_Modules.c | 10 ++++++++-- build/test/out/c/test_Modules.o | Bin 27536 -> 27552 bytes build/test/out/c/test_Modules_runner.o | Bin 9080 -> 9104 bytes build/test/out/test_Modules.out | Bin 69024 -> 69024 bytes build/test/preprocess/files/test_Modules.c | 10 ++++++++-- build/test/results/test_Modules.pass | 4 ++-- build/test/runners/test_Modules_runner.c | 4 ++-- test/test_Modules.c | 15 +++++++++++++-- 8 files changed, 33 insertions(+), 10 deletions(-) diff --git a/build/test/cache/test_Modules.c b/build/test/cache/test_Modules.c index 9b147a2..e1ae190 100644 --- a/build/test/cache/test_Modules.c +++ b/build/test/cache/test_Modules.c @@ -24,10 +24,12 @@ void tearDown(void) -void test_checkBallPosition_output(void) +void test_checkBallPosition_output_if_goal(void) { + + binX = 1; binY = 1; @@ -40,14 +42,18 @@ void test_checkBallPosition_output(void) + + int output = checkBallPosition(); + + UnityAssertEqualNumber((UNITY_INT)((1)), (UNITY_INT)((output)), ( ((void *)0) - ), (UNITY_UINT)(25), UNITY_DISPLAY_STYLE_INT); + ), (UNITY_UINT)(28), UNITY_DISPLAY_STYLE_INT); } diff --git a/build/test/out/c/test_Modules.o b/build/test/out/c/test_Modules.o index 4ab2f72e3f183af774e35e92758412733f6a4032..3956ae5b53b1faad4758124308f85b5e51055d3a 100644 GIT binary patch delta 515 zcmX|6O=uHg5Y1b%aZ{s^fG(?+TsLA}7onjd1dEW9)}?8rt!c87HrZ%x@n9^7QEz%l z^??@;i6EhS5Sn}-{z2)jMK3+2diIi&di9`wcBupN9y7zdH?!JDyN^{9?QZII94ACS zUejQR@nh!?$3C{ygYA}@c&VzN#1nHpOk-?VD|!pX%94AN-P93Y9@!NaPY>gG*}dbH ztz~z4{`Saq?^ejFE-lVmdtGtQifL%k8P!EQ{T%-l#OT7*|^gx_md?$00tQ(d8HZOdmZy zoVAorSoCHiP+}_IUz;<2sDZ=WzpG{JJGE#RvT|jmP)ASvEF^(N#*5$4AxgR&7^Mw~ zUrLr7N8O}~5>pF*6m5bhEB9g2uWaA}y=nvN98|OTK-)`Wf}WSbSNdK?iP%Kq=(Cy$ kjj38j?syW{=u6zSi}x62Ya5C=LZDv#39N^zq*J@!rS#=eIF0J&F03sU;1D zXlrf^x;U}x*tWhmEp@BkQU`ohT@??K%Tc~cZRf3_4hJ)P#OZ^3v3sg=+nF}&<$C4j z&}C;jV%Dx-tC$;Aao_BV;gMKKFF~Bl#C7Fol;?*RjZQSOVP`{%#3gT$@r#;m;wvqQ z0dLqk>YTN6*e^cW4d5y5ktPmsZN!94EpM_vALFTf9m@>zO@lq*yoM6;=GZeVkIrC` zUq+jV(8v%Sj_g&&lF511GEeIYbQXV85GWqN?(^dldWV fxmi4BAn_f$ZnoD?hj+c8HI?pteI?8~v}%ceGiaL< diff --git a/build/test/out/c/test_Modules_runner.o b/build/test/out/c/test_Modules_runner.o index e3200a756e3f646e58c9a9bfcd444babff8461d8..389437cf7b9a16587d812e69e2c175fa2e500afb 100644 GIT binary patch delta 881 zcmZ9JKWGzC9LMjM5Suhr6Po1ZHIP3oQY-2;4ozKhh}Gaw@IZ77SDV;C%*Bve5gm1q zf{kAUI|z0Vos@b*2B!#ODGrH)sH+t0px_`>3+jva4&ff$_i^9P_xFdpozp9Ym4nn> zpSVph14)0eQZ8OHjjHvQZVjLjNTeJ`DOAllqk8IEy>zj8(p;=Hm2%ZItmVLA@;6IH zW5!&np*{E_sxFw9OX|FFwKA{Pje4nZWUf-fLU7Xe&$F!HIkNnFA9;O2Qj`!*3`DF> zi0J?DSK;48L+A`I@t9&C=N=TVLwyT+q`)B>^v|q)DSa9g&oI^_%(KUf&B#%{>#^yw zE965s%IFRzqAIV;%!Vs7g)33UZ^$uUUGyo|1U(>YcU|-ldV+qJbf4_utauC*W4tKc zjEjClR?xPrRb6yHjF?J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