diff --git a/build/test/cache/test_Effektivverzinsung.c b/build/test/cache/test_Effektivverzinsung.c new file mode 100644 index 0000000..bcc5daa --- /dev/null +++ b/build/test/cache/test_Effektivverzinsung.c @@ -0,0 +1,43 @@ +#include "src/funktion.h" +#include "C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" + + + + +void setUp(void) + +{ + +} + + + +void tearDown(void) + +{ + +} + + + +void test_Effektivverzinsung_NeedToImplement(void) + +{ + + double a =2.9; + + double b = 63; + + double result = Effektivverzinsung(a,b); + + double ergebnis = 16.03439; + + printf("Testergebniss %f", ergebnis); + + UnityAssertFloatsWithin((UNITY_FLOAT)((UNITY_FLOAT)((result)) * (UNITY_FLOAT)(0.00001f)), (UNITY_FLOAT)((UNITY_FLOAT)((result))), (UNITY_FLOAT)((UNITY_FLOAT)((ergebnis))), (( + + ((void *)0) + + )), (UNITY_UINT)((UNITY_UINT)(21))); + +} diff --git a/build/test/dependencies/test_Effektivverzinsung.d b/build/test/dependencies/test_Effektivverzinsung.d new file mode 100644 index 0000000..0083a77 --- /dev/null +++ b/build/test/dependencies/test_Effektivverzinsung.d @@ -0,0 +1,5 @@ +build/test/out/c/test_Effektivverzinsung.o: \ + test/test_Effektivverzinsung.c \ + C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \ + C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h \ + src/funktion.h diff --git a/build/test/dependencies/test_Effektivverzinsung_runner.d b/build/test/dependencies/test_Effektivverzinsung_runner.d new file mode 100644 index 0000000..fb9e281 --- /dev/null +++ b/build/test/dependencies/test_Effektivverzinsung_runner.d @@ -0,0 +1,4 @@ +build/test/out/c/test_Effektivverzinsung_runner.o: \ + build/test/runners/test_Effektivverzinsung_runner.c \ + C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \ + C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h diff --git a/build/test/out/c/funktion.o b/build/test/out/c/funktion.o index 75d53e6..c7a4108 100644 Binary files a/build/test/out/c/funktion.o and b/build/test/out/c/funktion.o differ diff --git a/build/test/out/c/test_Effektivverzinsung.o b/build/test/out/c/test_Effektivverzinsung.o new file mode 100644 index 0000000..e185631 Binary files /dev/null and b/build/test/out/c/test_Effektivverzinsung.o differ diff --git a/build/test/out/c/test_Effektivverzinsung_runner.o b/build/test/out/c/test_Effektivverzinsung_runner.o new file mode 100644 index 0000000..0de4f50 Binary files /dev/null and b/build/test/out/c/test_Effektivverzinsung_runner.o differ diff --git a/build/test/out/test_Effektivverzinsung.out b/build/test/out/test_Effektivverzinsung.out new file mode 100644 index 0000000..b7344d2 Binary files /dev/null and b/build/test/out/test_Effektivverzinsung.out differ diff --git a/build/test/preprocess/files/test_Effektivverzinsung.c b/build/test/preprocess/files/test_Effektivverzinsung.c new file mode 100644 index 0000000..bcc5daa --- /dev/null +++ b/build/test/preprocess/files/test_Effektivverzinsung.c @@ -0,0 +1,43 @@ +#include "src/funktion.h" +#include "C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h" + + + + +void setUp(void) + +{ + +} + + + +void tearDown(void) + +{ + +} + + + +void test_Effektivverzinsung_NeedToImplement(void) + +{ + + double a =2.9; + + double b = 63; + + double result = Effektivverzinsung(a,b); + + double ergebnis = 16.03439; + + printf("Testergebniss %f", ergebnis); + + UnityAssertFloatsWithin((UNITY_FLOAT)((UNITY_FLOAT)((result)) * (UNITY_FLOAT)(0.00001f)), (UNITY_FLOAT)((UNITY_FLOAT)((result))), (UNITY_FLOAT)((UNITY_FLOAT)((ergebnis))), (( + + ((void *)0) + + )), (UNITY_UINT)((UNITY_UINT)(21))); + +} diff --git a/build/test/preprocess/includes/test_Effektivverzinsung.c b/build/test/preprocess/includes/test_Effektivverzinsung.c new file mode 100644 index 0000000..376e2c1 --- /dev/null +++ b/build/test/preprocess/includes/test_Effektivverzinsung.c @@ -0,0 +1,3 @@ +--- +- C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h +- src/funktion.h diff --git a/build/test/results/test_Effektivverzinsung.pass b/build/test/results/test_Effektivverzinsung.pass new file mode 100644 index 0000000..bcc8780 --- /dev/null +++ b/build/test/results/test_Effektivverzinsung.pass @@ -0,0 +1,19 @@ +--- +:source: + :path: test + :file: test_Effektivverzinsung.c +:successes: +- :test: test_Effektivverzinsung_NeedToImplement + :line: 14 + :message: '' + :unity_test_time: 0 +:failures: [] +:ignores: [] +:counts: + :total: 1 + :passed: 1 + :failed: 0 + :ignored: 0 +:stdout: +- 16.034388Testergebniss 16.034390 +:time: 0.4379367999790702 diff --git a/build/test/runners/test_Effektivverzinsung_runner.c b/build/test/runners/test_Effektivverzinsung_runner.c new file mode 100644 index 0000000..0fffb0c --- /dev/null +++ b/build/test/runners/test_Effektivverzinsung_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_Effektivverzinsung_NeedToImplement(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_Effektivverzinsung.c"); + run_test(test_Effektivverzinsung_NeedToImplement, "test_Effektivverzinsung_NeedToImplement", 14); + + return UnityEnd(); +} diff --git a/test/test_Effektivverzinsung.c b/test/test_Effektivverzinsung.c new file mode 100644 index 0000000..1f520b7 --- /dev/null +++ b/test/test_Effektivverzinsung.c @@ -0,0 +1,22 @@ +#include +#include "unity.h" +#include "funktion.h" + + +void setUp(void) +{ +} + +void tearDown(void) +{ +} + +void test_Effektivverzinsung_NeedToImplement(void) +{ + double a =2.9; + double b = 63; + double result = Effektivverzinsung(a,b); + double ergebnis = 16.03439; + printf("Testergebniss %f", ergebnis); + TEST_ASSERT_EQUAL_FLOAT(result, ergebnis); +} \ No newline at end of file diff --git a/test/test_Kritische_Menge.c b/test/test_Kritische_Menge.c deleted file mode 100644 index 6e33127..0000000 --- a/test/test_Kritische_Menge.c +++ /dev/null @@ -1,22 +0,0 @@ -#include "unity.h" -#include "funktion.h" - - -void setUp(void) -{ -} - -void tearDown(void) -{ -} - -void test_Kritische_Menge_NeedToImplement(void) -{ - double a =658423; - double b = 56432; - double c = 1999; - double result = Kritische_Menge(a,b,c); - double ergebnis = -12.096026; - printf("Testergebniss %f", ergebnis); - TEST_ASSERT_EQUAL_FLOAT(result, ergebnis); -}