diff --git a/build/test/cache/test_fmax.c b/build/test/cache/test_fmax.c new file mode 100644 index 0000000..9c346ec --- /dev/null +++ b/build/test/cache/test_fmax.c @@ -0,0 +1,35 @@ +#include "src/main/c/Calculator/calculator.h" +#include "/var/lib/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" + + + + + void test_fmax(void){ + + + + double result; + + double num1; + + double num2; + + double max = fmax(14.4,3.4); + + + + + + result = max; + + + + + + UnityAssertEqualNumber((UNITY_INT)((14.4)), (UNITY_INT)((result)), ( + + ((void *)0) + + ), (UNITY_UINT)(25), UNITY_DISPLAY_STYLE_INT); + + } diff --git a/build/test/cache/test_log10.c b/build/test/cache/test_log10.c new file mode 100644 index 0000000..155f9ee --- /dev/null +++ b/build/test/cache/test_log10.c @@ -0,0 +1,49 @@ +#include "src/main/c/Calculator/calculator.h" +#include "/var/lib/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" + + + + + + +void setUp(void){ + + + +} + +void tearDown(void){ + +} + + + + + +void test_log10(void){ + + + + double result; + + double a = 20; + + result = log10(a); + + + + + + return result; + + + + + + UnityAssertEqualNumber((UNITY_INT)((20)), (UNITY_INT)((result)), ( + + ((void *)0) + + ), (UNITY_UINT)(23), UNITY_DISPLAY_STYLE_INT); + +} diff --git a/build/test/dependencies/test_fmax.d b/build/test/dependencies/test_fmax.d new file mode 100644 index 0000000..0752914 --- /dev/null +++ b/build/test/dependencies/test_fmax.d @@ -0,0 +1,4 @@ +build/test/out/c/test_fmax.o: test/Calculator/test_fmax.c \ + /var/lib/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \ + /var/lib/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h \ + src/main/c/Calculator/calculator.h diff --git a/build/test/dependencies/test_fmax_runner.d b/build/test/dependencies/test_fmax_runner.d new file mode 100644 index 0000000..4fa6acb --- /dev/null +++ b/build/test/dependencies/test_fmax_runner.d @@ -0,0 +1,4 @@ +build/test/out/c/test_fmax_runner.o: \ + build/test/runners/test_fmax_runner.c \ + /var/lib/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \ + /var/lib/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h diff --git a/build/test/dependencies/test_log10.d b/build/test/dependencies/test_log10.d new file mode 100644 index 0000000..96d9b2d --- /dev/null +++ b/build/test/dependencies/test_log10.d @@ -0,0 +1,4 @@ +build/test/out/c/test_log10.o: test/Calculator/test_log10.c \ + /var/lib/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \ + /var/lib/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h \ + src/main/c/Calculator/calculator.h diff --git a/build/test/dependencies/test_log10_runner.d b/build/test/dependencies/test_log10_runner.d new file mode 100644 index 0000000..3026dc5 --- /dev/null +++ b/build/test/dependencies/test_log10_runner.d @@ -0,0 +1,4 @@ +build/test/out/c/test_log10_runner.o: \ + build/test/runners/test_log10_runner.c \ + /var/lib/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \ + /var/lib/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h diff --git a/build/test/out/c/calculator.o b/build/test/out/c/calculator.o index be9b9a8..81bccbb 100644 Binary files a/build/test/out/c/calculator.o and b/build/test/out/c/calculator.o differ diff --git a/build/test/out/c/test_fmax.o b/build/test/out/c/test_fmax.o new file mode 100644 index 0000000..a052685 Binary files /dev/null and b/build/test/out/c/test_fmax.o differ diff --git a/build/test/out/c/test_fmax_runner.o b/build/test/out/c/test_fmax_runner.o new file mode 100644 index 0000000..993faea Binary files /dev/null and b/build/test/out/c/test_fmax_runner.o differ diff --git a/build/test/out/c/test_log10.o b/build/test/out/c/test_log10.o new file mode 100644 index 0000000..26b2d1b Binary files /dev/null and b/build/test/out/c/test_log10.o differ diff --git a/build/test/out/c/test_log10_runner.o b/build/test/out/c/test_log10_runner.o new file mode 100644 index 0000000..91b406f Binary files /dev/null and b/build/test/out/c/test_log10_runner.o differ diff --git a/build/test/out/test_cbrt.out b/build/test/out/test_cbrt.out index ad28e87..c69a12b 100755 Binary files a/build/test/out/test_cbrt.out and b/build/test/out/test_cbrt.out differ diff --git a/build/test/out/test_ceil.out b/build/test/out/test_ceil.out index e47daf0..80995b2 100755 Binary files a/build/test/out/test_ceil.out and b/build/test/out/test_ceil.out differ diff --git a/build/test/out/test_divide.out b/build/test/out/test_divide.out index 462bfbf..895a8c9 100755 Binary files a/build/test/out/test_divide.out and b/build/test/out/test_divide.out differ diff --git a/build/test/out/test_exp.out b/build/test/out/test_exp.out index 8406481..ea71135 100755 Binary files a/build/test/out/test_exp.out and b/build/test/out/test_exp.out differ diff --git a/build/test/out/test_factorial.out b/build/test/out/test_factorial.out index 7d57a03..9e9e8b3 100755 Binary files a/build/test/out/test_factorial.out and b/build/test/out/test_factorial.out differ diff --git a/build/test/out/test_floor.out b/build/test/out/test_floor.out index acce596..7db79b6 100755 Binary files a/build/test/out/test_floor.out and b/build/test/out/test_floor.out differ diff --git a/build/test/out/test_fmax.out b/build/test/out/test_fmax.out new file mode 100755 index 0000000..942e627 Binary files /dev/null and b/build/test/out/test_fmax.out differ diff --git a/build/test/out/test_log.out b/build/test/out/test_log.out index 01f689b..28be84a 100755 Binary files a/build/test/out/test_log.out and b/build/test/out/test_log.out differ diff --git a/build/test/out/test_log10.out b/build/test/out/test_log10.out new file mode 100755 index 0000000..b959e2a Binary files /dev/null and b/build/test/out/test_log10.out differ diff --git a/build/test/out/test_mod.out b/build/test/out/test_mod.out index 3a38aea..1a310eb 100755 Binary files a/build/test/out/test_mod.out and b/build/test/out/test_mod.out differ diff --git a/build/test/out/test_pow.out b/build/test/out/test_pow.out index ae4d474..eb1e5b2 100755 Binary files a/build/test/out/test_pow.out and b/build/test/out/test_pow.out differ diff --git a/build/test/out/test_round.out b/build/test/out/test_round.out index 1f1b5aa..b86de40 100755 Binary files a/build/test/out/test_round.out and b/build/test/out/test_round.out differ diff --git a/build/test/out/test_sin.out b/build/test/out/test_sin.out index 73ca3f4..c9d94d2 100755 Binary files a/build/test/out/test_sin.out and b/build/test/out/test_sin.out differ diff --git a/build/test/out/test_sqrt.out b/build/test/out/test_sqrt.out index 2318ec0..92d998e 100755 Binary files a/build/test/out/test_sqrt.out and b/build/test/out/test_sqrt.out differ diff --git a/build/test/out/test_subtract.out b/build/test/out/test_subtract.out index f9de162..332fb55 100755 Binary files a/build/test/out/test_subtract.out and b/build/test/out/test_subtract.out differ diff --git a/build/test/preprocess/files/test_fmax.c b/build/test/preprocess/files/test_fmax.c new file mode 100644 index 0000000..9c346ec --- /dev/null +++ b/build/test/preprocess/files/test_fmax.c @@ -0,0 +1,35 @@ +#include "src/main/c/Calculator/calculator.h" +#include "/var/lib/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" + + + + + void test_fmax(void){ + + + + double result; + + double num1; + + double num2; + + double max = fmax(14.4,3.4); + + + + + + result = max; + + + + + + UnityAssertEqualNumber((UNITY_INT)((14.4)), (UNITY_INT)((result)), ( + + ((void *)0) + + ), (UNITY_UINT)(25), UNITY_DISPLAY_STYLE_INT); + + } diff --git a/build/test/preprocess/files/test_log10.c b/build/test/preprocess/files/test_log10.c new file mode 100644 index 0000000..155f9ee --- /dev/null +++ b/build/test/preprocess/files/test_log10.c @@ -0,0 +1,49 @@ +#include "src/main/c/Calculator/calculator.h" +#include "/var/lib/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" + + + + + + +void setUp(void){ + + + +} + +void tearDown(void){ + +} + + + + + +void test_log10(void){ + + + + double result; + + double a = 20; + + result = log10(a); + + + + + + return result; + + + + + + UnityAssertEqualNumber((UNITY_INT)((20)), (UNITY_INT)((result)), ( + + ((void *)0) + + ), (UNITY_UINT)(23), UNITY_DISPLAY_STYLE_INT); + +} diff --git a/build/test/preprocess/includes/test_fmax.c b/build/test/preprocess/includes/test_fmax.c new file mode 100644 index 0000000..f2efae7 --- /dev/null +++ b/build/test/preprocess/includes/test_fmax.c @@ -0,0 +1,3 @@ +--- +- "/var/lib/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" +- src/main/c/Calculator/calculator.h diff --git a/build/test/preprocess/includes/test_log10.c b/build/test/preprocess/includes/test_log10.c new file mode 100644 index 0000000..f2efae7 --- /dev/null +++ b/build/test/preprocess/includes/test_log10.c @@ -0,0 +1,3 @@ +--- +- "/var/lib/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" +- src/main/c/Calculator/calculator.h diff --git a/build/test/results/test_add.pass b/build/test/results/test_add.pass index 6e78b13..f064217 100644 --- a/build/test/results/test_add.pass +++ b/build/test/results/test_add.pass @@ -15,4 +15,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.0006854459934402257 +:time: 0.0031575530010741204 diff --git a/build/test/results/test_cbrt.pass b/build/test/results/test_cbrt.pass index ae1ebef..1d1333b 100644 --- a/build/test/results/test_cbrt.pass +++ b/build/test/results/test_cbrt.pass @@ -15,4 +15,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.0007552689930889755 +:time: 0.006589814991457388 diff --git a/build/test/results/test_ceil.pass b/build/test/results/test_ceil.pass index 216afcb..424dca2 100644 --- a/build/test/results/test_ceil.pass +++ b/build/test/results/test_ceil.pass @@ -15,4 +15,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.000791327009210363 +:time: 0.00605196098331362 diff --git a/build/test/results/test_divide.pass b/build/test/results/test_divide.pass index fd44823..e42d52d 100644 --- a/build/test/results/test_divide.pass +++ b/build/test/results/test_divide.pass @@ -15,4 +15,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.0007838979945518076 +:time: 0.006208898994373158 diff --git a/build/test/results/test_exp.pass b/build/test/results/test_exp.pass index fdf3867..9da12f9 100644 --- a/build/test/results/test_exp.pass +++ b/build/test/results/test_exp.pass @@ -15,4 +15,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.0007327220228035003 +:time: 0.006314277008641511 diff --git a/build/test/results/test_factorial.pass b/build/test/results/test_factorial.pass index 15ad9e6..0b746a8 100644 --- a/build/test/results/test_factorial.pass +++ b/build/test/results/test_factorial.pass @@ -15,4 +15,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.0007816760044079274 +:time: 0.006333274010103196 diff --git a/build/test/results/test_floor.pass b/build/test/results/test_floor.pass index 2313cc8..73ac713 100644 --- a/build/test/results/test_floor.pass +++ b/build/test/results/test_floor.pass @@ -15,4 +15,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.000812580983620137 +:time: 0.006300724984612316 diff --git a/build/test/results/test_fmax.pass b/build/test/results/test_fmax.pass new file mode 100644 index 0000000..1633b0c --- /dev/null +++ b/build/test/results/test_fmax.pass @@ -0,0 +1,18 @@ +--- +:source: + :path: test/Calculator + :file: test_fmax.c +:successes: +- :test: test_fmax + :line: 14 + :message: '' + :unity_test_time: 0 +:failures: [] +:ignores: [] +:counts: + :total: 1 + :passed: 1 + :failed: 0 + :ignored: 0 +:stdout: [] +:time: 0.006286512012593448 diff --git a/build/test/results/test_log.pass b/build/test/results/test_log.pass index 73dcd04..7a917de 100644 --- a/build/test/results/test_log.pass +++ b/build/test/results/test_log.pass @@ -15,4 +15,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.0007323859899770468 +:time: 0.003080766007769853 diff --git a/build/test/results/test_log10.pass b/build/test/results/test_log10.pass new file mode 100644 index 0000000..6a18a68 --- /dev/null +++ b/build/test/results/test_log10.pass @@ -0,0 +1,18 @@ +--- +:source: + :path: test/Calculator + :file: test_log10.c +:successes: +- :test: test_log10 + :line: 13 + :message: '' + :unity_test_time: 0 +:failures: [] +:ignores: [] +:counts: + :total: 1 + :passed: 1 + :failed: 0 + :ignored: 0 +:stdout: [] +:time: 0.006343023007502779 diff --git a/build/test/results/test_mod.pass b/build/test/results/test_mod.pass index 2353f3e..133966a 100644 --- a/build/test/results/test_mod.pass +++ b/build/test/results/test_mod.pass @@ -15,4 +15,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.0007842250051908195 +:time: 0.006334662000881508 diff --git a/build/test/results/test_multiply.pass b/build/test/results/test_multiply.pass index 634f109..abb7ff1 100644 --- a/build/test/results/test_multiply.pass +++ b/build/test/results/test_multiply.pass @@ -15,4 +15,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.0007811810064595193 +:time: 0.004287940013455227 diff --git a/build/test/results/test_pow.pass b/build/test/results/test_pow.pass index 48c8c2e..d7a62cd 100644 --- a/build/test/results/test_pow.pass +++ b/build/test/results/test_pow.pass @@ -19,4 +19,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.0008296039886772633 +:time: 0.006217798014404252 diff --git a/build/test/results/test_round.pass b/build/test/results/test_round.pass index e594301..8c39de6 100644 --- a/build/test/results/test_round.pass +++ b/build/test/results/test_round.pass @@ -15,4 +15,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.003075557993724942 +:time: 0.006286452000495046 diff --git a/build/test/results/test_sin.pass b/build/test/results/test_sin.pass index d11e16c..61f7899 100644 --- a/build/test/results/test_sin.pass +++ b/build/test/results/test_sin.pass @@ -15,4 +15,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.0007345140038523823 +:time: 0.006029690994182602 diff --git a/build/test/results/test_sqrt.pass b/build/test/results/test_sqrt.pass index f392172..b1163b9 100644 --- a/build/test/results/test_sqrt.pass +++ b/build/test/results/test_sqrt.pass @@ -15,4 +15,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.000786467018770054 +:time: 0.006369120994349942 diff --git a/build/test/results/test_subtract.pass b/build/test/results/test_subtract.pass index 6bf58d8..cf2265a 100644 --- a/build/test/results/test_subtract.pass +++ b/build/test/results/test_subtract.pass @@ -15,4 +15,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.0007993110048118979 +:time: 0.006361763982567936 diff --git a/build/test/runners/test_fmax_runner.c b/build/test/runners/test_fmax_runner.c new file mode 100644 index 0000000..a0611b2 --- /dev/null +++ b/build/test/runners/test_fmax_runner.c @@ -0,0 +1,87 @@ +/* AUTOGENERATED FILE. DO NOT EDIT. */ + +/*=======Automagically Detected Files To Include=====*/ +#include "unity.h" + +int GlobalExpectCount; +int GlobalVerifyOrder; +char* GlobalOrderError; + +/*=======External Functions This Runner Calls=====*/ +extern void setUp(void); +extern void tearDown(void); +extern void test_fmax(void); + + +/*=======Mock Management=====*/ +static void CMock_Init(void) +{ + GlobalExpectCount = 0; + GlobalVerifyOrder = 0; + GlobalOrderError = NULL; +} +static void CMock_Verify(void) +{ +} +static void CMock_Destroy(void) +{ +} + +/*=======Setup (stub)=====*/ +void setUp(void) {} + +/*=======Teardown (stub)=====*/ +void tearDown(void) {} + +/*=======Test Reset Options=====*/ +void resetTest(void); +void resetTest(void) +{ + tearDown(); + CMock_Verify(); + CMock_Destroy(); + CMock_Init(); + setUp(); +} +void verifyTest(void); +void verifyTest(void) +{ + CMock_Verify(); +} + +/*=======Test Runner Used To Run Each Test=====*/ +static void run_test(UnityTestFunction func, const char* name, UNITY_LINE_TYPE line_num) +{ + Unity.CurrentTestName = name; + Unity.CurrentTestLineNumber = line_num; +#ifdef UNITY_USE_COMMAND_LINE_ARGS + if (!UnityTestMatches()) + return; +#endif + Unity.NumberOfTests++; + UNITY_CLR_DETAILS(); + UNITY_EXEC_TIME_START(); + CMock_Init(); + if (TEST_PROTECT()) + { + setUp(); + func(); + } + if (TEST_PROTECT()) + { + tearDown(); + CMock_Verify(); + } + CMock_Destroy(); + UNITY_EXEC_TIME_STOP(); + UnityConcludeTest(); +} + +/*=======MAIN=====*/ +int main(void) +{ + UnityBegin("test_fmax.c"); + run_test(test_fmax, "test_fmax", 14); + + return UnityEnd(); +} diff --git a/build/test/runners/test_log10_runner.c b/build/test/runners/test_log10_runner.c new file mode 100644 index 0000000..15e0454 --- /dev/null +++ b/build/test/runners/test_log10_runner.c @@ -0,0 +1,81 @@ +/* AUTOGENERATED FILE. DO NOT EDIT. */ + +/*=======Automagically Detected Files To Include=====*/ +#include "unity.h" + +int GlobalExpectCount; +int GlobalVerifyOrder; +char* GlobalOrderError; + +/*=======External Functions This Runner Calls=====*/ +extern void setUp(void); +extern void tearDown(void); +extern void test_log10(void); + + +/*=======Mock Management=====*/ +static void CMock_Init(void) +{ + GlobalExpectCount = 0; + GlobalVerifyOrder = 0; + GlobalOrderError = NULL; +} +static void CMock_Verify(void) +{ +} +static void CMock_Destroy(void) +{ +} + +/*=======Test Reset Options=====*/ +void resetTest(void); +void resetTest(void) +{ + tearDown(); + CMock_Verify(); + CMock_Destroy(); + CMock_Init(); + setUp(); +} +void verifyTest(void); +void verifyTest(void) +{ + CMock_Verify(); +} + +/*=======Test Runner Used To Run Each Test=====*/ +static void run_test(UnityTestFunction func, const char* name, UNITY_LINE_TYPE line_num) +{ + Unity.CurrentTestName = name; + Unity.CurrentTestLineNumber = line_num; +#ifdef UNITY_USE_COMMAND_LINE_ARGS + if (!UnityTestMatches()) + return; +#endif + Unity.NumberOfTests++; + UNITY_CLR_DETAILS(); + UNITY_EXEC_TIME_START(); + CMock_Init(); + if (TEST_PROTECT()) + { + setUp(); + func(); + } + if (TEST_PROTECT()) + { + tearDown(); + CMock_Verify(); + } + CMock_Destroy(); + UNITY_EXEC_TIME_STOP(); + UnityConcludeTest(); +} + +/*=======MAIN=====*/ +int main(void) +{ + UnityBegin("test_log10.c"); + run_test(test_log10, "test_log10", 13); + + return UnityEnd(); +} diff --git a/src/main/c/Calculator/calculator.c b/src/main/c/Calculator/calculator.c index 158e404..a92d693 100644 --- a/src/main/c/Calculator/calculator.c +++ b/src/main/c/Calculator/calculator.c @@ -24,6 +24,9 @@ double exp(double num1); double ceil(double num1); double floor(double num1); double round(double num1); +double fmax(double num1,double num2); +double log10(double num1); +//double exp2(double num1); int calculator() { int choice; @@ -87,8 +90,11 @@ double round(double num1); printf("21. Exponent\n"); printf("22. Floor\n"); printf("23. Round\n"); -// - printf("21. Exit\n"); + printf("24. fmaximum"); + printf("25. base 10 logarithm"); +// printf("26. 2 raise to the power"); +// printf("27 trunc"); + printf("28. Exit\n"); } double performOperation(int choice, double num1, double num2) { switch (choice) { @@ -139,6 +145,14 @@ double round(double num1); return 0; floor(num1); case 23: return 0; round(num1); + case 24: + return 0; fmax(num1,num2); + case 25: + return 0; log10(num1); +// case 26: +// return 0; exp2(num1); +// case 27: +// return 0; trunc(num1); default: return 0.0; } @@ -231,3 +245,21 @@ double round(double num1){ double result = num1; return result; } +double fmax(double num1 , double num2){ + double maximum = fmax(num1,num2) ; + return maximum; +} + +double log10(double num1){ + double result = num1; + return result; +}/* +double log10(double num1){ + double result = num1; + return result; +} +double trunc(double num1){ + double result = num1; + return result; +} +*/ diff --git a/src/main/c/Calculator/calculator.h b/src/main/c/Calculator/calculator.h index 5f84cda..35c9473 100644 --- a/src/main/c/Calculator/calculator.h +++ b/src/main/c/Calculator/calculator.h @@ -16,4 +16,6 @@ double exp(double num1); double ceil(double num1); double floor(double num1); double round(double num1); +double fmax(double num1, double num2); +double log10(double num1); #endif diff --git a/test/Calculator/test_fmax.c b/test/Calculator/test_fmax.c new file mode 100644 index 0000000..ab73fb7 --- /dev/null +++ b/test/Calculator/test_fmax.c @@ -0,0 +1,28 @@ + + #ifdef TEST + #include "unity.h" + #include "calculator.h" + +/* + ( void setUp(void){ + //Wenn Funktion Vorraussetzungen braucht + } + void tearDown(void){ + } +*/ + + void test_fmax(void){ + /* arrange */ + double result; + double num1; + double num2; + double max = fmax(14.4,3.4); + + /* act */ + result = max; + + /* assert */ + TEST_ASSERT_EQUAL_INT(14.4, result);// fmax(14.4,3.4); + } + + #endif // TEST diff --git a/test/Calculator/test_log10.c b/test/Calculator/test_log10.c new file mode 100644 index 0000000..5917379 --- /dev/null +++ b/test/Calculator/test_log10.c @@ -0,0 +1,26 @@ +#ifdef TEST +#include "unity.h" +#include "calculator.h" + + +void setUp(void){ + //Wenn Funktion Vorraussetzungen braucht +} +void tearDown(void){ +} + + +void test_log10(void){ + /* arrange */ + double result; + double a = 20; + result = log10(a); + + /* act */ + return result; + + /* assert */ + TEST_ASSERT_EQUAL_INT(20, result);//log10 (20) = 20; +} + +#endif // TEST