diff --git a/build/test/cache/test_Kritische_Menge.c b/build/test/cache/test_Kritische_Menge.c new file mode 100644 index 0000000..820a272 --- /dev/null +++ b/build/test/cache/test_Kritische_Menge.c @@ -0,0 +1,45 @@ +#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_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); + + 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_Kritische_Menge.d b/build/test/dependencies/test_Kritische_Menge.d new file mode 100644 index 0000000..213c7b8 --- /dev/null +++ b/build/test/dependencies/test_Kritische_Menge.d @@ -0,0 +1,4 @@ +build/test/out/c/test_Kritische_Menge.o: test/test_Kritische_Menge.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_Kritische_Menge_runner.d b/build/test/dependencies/test_Kritische_Menge_runner.d new file mode 100644 index 0000000..a455ed5 --- /dev/null +++ b/build/test/dependencies/test_Kritische_Menge_runner.d @@ -0,0 +1,4 @@ +build/test/out/c/test_Kritische_Menge_runner.o: \ + build/test/runners/test_Kritische_Menge_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 930765f..75d53e6 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_Kritische_Menge.o b/build/test/out/c/test_Kritische_Menge.o new file mode 100644 index 0000000..7e4bf9e Binary files /dev/null and b/build/test/out/c/test_Kritische_Menge.o differ diff --git a/build/test/out/c/test_Kritische_Menge_runner.o b/build/test/out/c/test_Kritische_Menge_runner.o new file mode 100644 index 0000000..88f8e50 Binary files /dev/null and b/build/test/out/c/test_Kritische_Menge_runner.o differ diff --git a/build/test/out/test_Anlagenabnutzungsgrad.out b/build/test/out/test_Anlagenabnutzungsgrad.out index 538d229..4b544fb 100644 Binary files a/build/test/out/test_Anlagenabnutzungsgrad.out and b/build/test/out/test_Anlagenabnutzungsgrad.out differ diff --git a/build/test/out/test_Anlagenintensitaet.out b/build/test/out/test_Anlagenintensitaet.out index f1db905..5cfc9b2 100644 Binary files a/build/test/out/test_Anlagenintensitaet.out and b/build/test/out/test_Anlagenintensitaet.out differ diff --git a/build/test/out/test_Anlagenproduktivitaet.out b/build/test/out/test_Anlagenproduktivitaet.out index d278755..b99f998 100644 Binary files a/build/test/out/test_Anlagenproduktivitaet.out and b/build/test/out/test_Anlagenproduktivitaet.out differ diff --git a/build/test/out/test_Arbeitsproduktivitaet.out b/build/test/out/test_Arbeitsproduktivitaet.out index 2cb6c26..137baa4 100644 Binary files a/build/test/out/test_Arbeitsproduktivitaet.out and b/build/test/out/test_Arbeitsproduktivitaet.out differ diff --git a/build/test/out/test_Kalkulatorische_Zinsen.out b/build/test/out/test_Kalkulatorische_Zinsen.out index 21c5554..fbdf5c4 100644 Binary files a/build/test/out/test_Kalkulatorische_Zinsen.out and b/build/test/out/test_Kalkulatorische_Zinsen.out differ diff --git a/build/test/out/test_Kritische_Menge.out b/build/test/out/test_Kritische_Menge.out new file mode 100644 index 0000000..322781a Binary files /dev/null and b/build/test/out/test_Kritische_Menge.out differ diff --git a/build/test/out/test_angebotserfolg.out b/build/test/out/test_angebotserfolg.out index e60efb8..7c281c0 100644 Binary files a/build/test/out/test_angebotserfolg.out and b/build/test/out/test_angebotserfolg.out differ diff --git a/build/test/out/test_marktanteil.out b/build/test/out/test_marktanteil.out index 03856ca..486646c 100644 Binary files a/build/test/out/test_marktanteil.out and b/build/test/out/test_marktanteil.out differ diff --git a/build/test/preprocess/files/test_Kritische_Menge.c b/build/test/preprocess/files/test_Kritische_Menge.c new file mode 100644 index 0000000..820a272 --- /dev/null +++ b/build/test/preprocess/files/test_Kritische_Menge.c @@ -0,0 +1,45 @@ +#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_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); + + 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_Kritische_Menge.c b/build/test/preprocess/includes/test_Kritische_Menge.c new file mode 100644 index 0000000..376e2c1 --- /dev/null +++ b/build/test/preprocess/includes/test_Kritische_Menge.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_Anlagenabnutzungsgrad.pass b/build/test/results/test_Anlagenabnutzungsgrad.pass index ad528a8..294c639 100644 --- a/build/test/results/test_Anlagenabnutzungsgrad.pass +++ b/build/test/results/test_Anlagenabnutzungsgrad.pass @@ -15,6 +15,5 @@ :failed: 0 :ignored: 0 :stdout: -- Der Anlagenabnutzungsgrad betraegt 60.00% - Testergebniss 60.000000 -:time: 0.3835256999882404 +:time: 0.4376596999936737 diff --git a/build/test/results/test_Anlagenintensitaet.pass b/build/test/results/test_Anlagenintensitaet.pass index 97a818b..33f9000 100644 --- a/build/test/results/test_Anlagenintensitaet.pass +++ b/build/test/results/test_Anlagenintensitaet.pass @@ -16,4 +16,4 @@ :ignored: 0 :stdout: - Testergebniss 4878.048780 -:time: 0.38365560001693666 +:time: 0.3743458999961149 diff --git a/build/test/results/test_Anlagenproduktivitaet.pass b/build/test/results/test_Anlagenproduktivitaet.pass index d7f23f9..f29c7ee 100644 --- a/build/test/results/test_Anlagenproduktivitaet.pass +++ b/build/test/results/test_Anlagenproduktivitaet.pass @@ -16,4 +16,4 @@ :ignored: 0 :stdout: - Testergebniss 18.203304 -:time: 0.47731210000347346 +:time: 0.3313736999989487 diff --git a/build/test/results/test_Arbeitsproduktivitaet.pass b/build/test/results/test_Arbeitsproduktivitaet.pass index 9d3c6af..f2c5539 100644 --- a/build/test/results/test_Arbeitsproduktivitaet.pass +++ b/build/test/results/test_Arbeitsproduktivitaet.pass @@ -16,4 +16,4 @@ :ignored: 0 :stdout: - Testergebniss 60.000000 -:time: 0.4808218999824021 +:time: 0.3860949000227265 diff --git a/build/test/results/test_Kalkulatorische_Zinsen.pass b/build/test/results/test_Kalkulatorische_Zinsen.pass index 7e9823f..b6c6b9b 100644 --- a/build/test/results/test_Kalkulatorische_Zinsen.pass +++ b/build/test/results/test_Kalkulatorische_Zinsen.pass @@ -16,4 +16,4 @@ :ignored: 0 :stdout: - Testergebniss 1.440000 -:time: 0.4978156000142917 +:time: 0.39521369998692535 diff --git a/build/test/results/test_Kritische_Menge.pass b/build/test/results/test_Kritische_Menge.pass new file mode 100644 index 0000000..55324e9 --- /dev/null +++ b/build/test/results/test_Kritische_Menge.pass @@ -0,0 +1,19 @@ +--- +:source: + :path: test + :file: test_Kritische_Menge.c +:successes: +- :test: test_Kritische_Menge_NeedToImplement + :line: 13 + :message: '' + :unity_test_time: 0 +:failures: [] +:ignores: [] +:counts: + :total: 1 + :passed: 1 + :failed: 0 + :ignored: 0 +:stdout: +- Testergebniss -12.096026 +:time: 0.4311571999860462 diff --git a/build/test/results/test_angebotserfolg.pass b/build/test/results/test_angebotserfolg.pass index 19f87db..4346e53 100644 --- a/build/test/results/test_angebotserfolg.pass +++ b/build/test/results/test_angebotserfolg.pass @@ -16,4 +16,4 @@ :ignored: 0 :stdout: - Testergebniss 225.000000 -:time: 0.3750838999985717 +:time: 0.3919333999801893 diff --git a/build/test/results/test_marktanteil.pass b/build/test/results/test_marktanteil.pass index b70caf2..496a4f7 100644 --- a/build/test/results/test_marktanteil.pass +++ b/build/test/results/test_marktanteil.pass @@ -15,6 +15,5 @@ :failed: 0 :ignored: 0 :stdout: -- 'Der Marktanteil betrÃĪgt: 21.739130' - Testergebniss 21.739130 -:time: 0.26141169999027625 +:time: 0.3646467000071425 diff --git a/build/test/runners/test_Kritische_Menge_runner.c b/build/test/runners/test_Kritische_Menge_runner.c new file mode 100644 index 0000000..0cd0445 --- /dev/null +++ b/build/test/runners/test_Kritische_Menge_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_Kritische_Menge_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_Kritische_Menge.c"); + run_test(test_Kritische_Menge_NeedToImplement, "test_Kritische_Menge_NeedToImplement", 13); + + return UnityEnd(); +} diff --git a/main.exe b/main.exe new file mode 100644 index 0000000..bacb4a6 Binary files /dev/null and b/main.exe differ diff --git a/test/test_Kritische_Menge.c b/test/test_Kritische_Menge.c new file mode 100644 index 0000000..6e33127 --- /dev/null +++ b/test/test_Kritische_Menge.c @@ -0,0 +1,22 @@ +#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); +}