diff --git a/build/test/cache/test_prozentsatz.c b/build/test/cache/test_prozentsatz.c new file mode 100644 index 0000000..8781747 --- /dev/null +++ b/build/test/cache/test_prozentsatz.c @@ -0,0 +1,39 @@ +#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_prozentsatz_NeedToImplement(void) { + + double prozent = 8; + + double ein = 9; + + double result = prozentsatz(prozent, ein); + + double ergebnis = (ein / prozent); + + UnityAssertFloatsWithin((UNITY_FLOAT)((UNITY_FLOAT)((ergebnis)) * (UNITY_FLOAT)(0.00001f)), (UNITY_FLOAT)((UNITY_FLOAT)((ergebnis))), (UNITY_FLOAT)((UNITY_FLOAT)((result))), (( + + ((void *)0) + + )), (UNITY_UINT)((UNITY_UINT)(18))); + +} diff --git a/build/test/dependencies/test_prozentsatz.d b/build/test/dependencies/test_prozentsatz.d new file mode 100644 index 0000000..bc8b22d --- /dev/null +++ b/build/test/dependencies/test_prozentsatz.d @@ -0,0 +1,4 @@ +build/test/out/c/test_prozentsatz.o: test/test_prozentsatz.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_prozentsatz_runner.d b/build/test/dependencies/test_prozentsatz_runner.d new file mode 100644 index 0000000..47f8cc3 --- /dev/null +++ b/build/test/dependencies/test_prozentsatz_runner.d @@ -0,0 +1,4 @@ +build/test/out/c/test_prozentsatz_runner.o: \ + build/test/runners/test_prozentsatz_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 70156e1..e5381da 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_prozentsatz.o b/build/test/out/c/test_prozentsatz.o new file mode 100644 index 0000000..277931c Binary files /dev/null and b/build/test/out/c/test_prozentsatz.o differ diff --git a/build/test/out/c/test_prozentsatz_runner.o b/build/test/out/c/test_prozentsatz_runner.o new file mode 100644 index 0000000..2cd95b4 Binary files /dev/null and b/build/test/out/c/test_prozentsatz_runner.o differ diff --git a/build/test/out/test_Akkortrichtsatz.out b/build/test/out/test_Akkortrichtsatz.out index b41bcb4..f29e478 100755 Binary files a/build/test/out/test_Akkortrichtsatz.out and b/build/test/out/test_Akkortrichtsatz.out differ diff --git a/build/test/out/test_Anlagenabnutzungsgrad.out b/build/test/out/test_Anlagenabnutzungsgrad.out index 8c8994f..512ffeb 100755 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 6fde99b..f4f50c2 100755 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 a0d7858..0602a64 100755 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 0dde20c..a6faff2 100755 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_Cashflow_zu_Gesamtkapital.out b/build/test/out/test_Cashflow_zu_Gesamtkapital.out index 21cc6b5..20a95d6 100755 Binary files a/build/test/out/test_Cashflow_zu_Gesamtkapital.out and b/build/test/out/test_Cashflow_zu_Gesamtkapital.out differ diff --git a/build/test/out/test_Dynamische_Amortisationszeit.out b/build/test/out/test_Dynamische_Amortisationszeit.out index 7d7910a..739f91d 100755 Binary files a/build/test/out/test_Dynamische_Amortisationszeit.out and b/build/test/out/test_Dynamische_Amortisationszeit.out differ diff --git a/build/test/out/test_Effektivverzinsung.out b/build/test/out/test_Effektivverzinsung.out index c147598..97cdbad 100755 Binary files a/build/test/out/test_Effektivverzinsung.out and b/build/test/out/test_Effektivverzinsung.out differ diff --git a/build/test/out/test_Finanzierungsregeln.out b/build/test/out/test_Finanzierungsregeln.out index 40906cd..35383e7 100755 Binary files a/build/test/out/test_Finanzierungsregeln.out and b/build/test/out/test_Finanzierungsregeln.out differ diff --git a/build/test/out/test_GewinnMaximum.out b/build/test/out/test_GewinnMaximum.out index 4c9aaf3..3325278 100755 Binary files a/build/test/out/test_GewinnMaximum.out and b/build/test/out/test_GewinnMaximum.out differ diff --git a/build/test/out/test_Kalkulatorische_Zinsen.out b/build/test/out/test_Kalkulatorische_Zinsen.out index f15219a..76c3e83 100755 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 index 0188b97..994b5dc 100755 Binary files a/build/test/out/test_Kritische_Menge.out and b/build/test/out/test_Kritische_Menge.out differ diff --git a/build/test/out/test_Stueckzeitakkort.out b/build/test/out/test_Stueckzeitakkort.out index f2351dd..0540bd4 100755 Binary files a/build/test/out/test_Stueckzeitakkort.out and b/build/test/out/test_Stueckzeitakkort.out differ diff --git a/build/test/out/test_Vadd.out b/build/test/out/test_Vadd.out index 703f45f..de6ed40 100755 Binary files a/build/test/out/test_Vadd.out and b/build/test/out/test_Vadd.out differ diff --git a/build/test/out/test_Vaddx2.out b/build/test/out/test_Vaddx2.out index 28d65f2..e9e53b7 100755 Binary files a/build/test/out/test_Vaddx2.out and b/build/test/out/test_Vaddx2.out differ diff --git a/build/test/out/test_Vaddx3.out b/build/test/out/test_Vaddx3.out index c2d034a..29d331e 100755 Binary files a/build/test/out/test_Vaddx3.out and b/build/test/out/test_Vaddx3.out differ diff --git a/build/test/out/test_Vangle.out b/build/test/out/test_Vangle.out index 865c03b..d702525 100755 Binary files a/build/test/out/test_Vangle.out and b/build/test/out/test_Vangle.out differ diff --git a/build/test/out/test_Vlength.out b/build/test/out/test_Vlength.out index e277811..5406c98 100755 Binary files a/build/test/out/test_Vlength.out and b/build/test/out/test_Vlength.out differ diff --git a/build/test/out/test_Vmiddle.out b/build/test/out/test_Vmiddle.out index cc54a64..5c2747d 100755 Binary files a/build/test/out/test_Vmiddle.out and b/build/test/out/test_Vmiddle.out differ diff --git a/build/test/out/test_Vmiddle2.out b/build/test/out/test_Vmiddle2.out index a7f8395..ca72c5a 100755 Binary files a/build/test/out/test_Vmiddle2.out and b/build/test/out/test_Vmiddle2.out differ diff --git a/build/test/out/test_Vmiddle3.out b/build/test/out/test_Vmiddle3.out index d110686..d91aaf9 100755 Binary files a/build/test/out/test_Vmiddle3.out and b/build/test/out/test_Vmiddle3.out differ diff --git a/build/test/out/test_Vmultiplier.out b/build/test/out/test_Vmultiplier.out index c0cf462..e3b681b 100755 Binary files a/build/test/out/test_Vmultiplier.out and b/build/test/out/test_Vmultiplier.out differ diff --git a/build/test/out/test_Vmultiplier2.out b/build/test/out/test_Vmultiplier2.out index 763d70a..b5a6579 100755 Binary files a/build/test/out/test_Vmultiplier2.out and b/build/test/out/test_Vmultiplier2.out differ diff --git a/build/test/out/test_Vmultiplier3.out b/build/test/out/test_Vmultiplier3.out index 8f13bc5..e7faf19 100755 Binary files a/build/test/out/test_Vmultiplier3.out and b/build/test/out/test_Vmultiplier3.out differ diff --git a/build/test/out/test_Vparallel.out b/build/test/out/test_Vparallel.out index 37f7436..968798e 100755 Binary files a/build/test/out/test_Vparallel.out and b/build/test/out/test_Vparallel.out differ diff --git a/build/test/out/test_Vshift.out b/build/test/out/test_Vshift.out index 212aa90..cbcb03e 100755 Binary files a/build/test/out/test_Vshift.out and b/build/test/out/test_Vshift.out differ diff --git a/build/test/out/test_Vskalort.out b/build/test/out/test_Vskalort.out index f2af9e0..88d623b 100755 Binary files a/build/test/out/test_Vskalort.out and b/build/test/out/test_Vskalort.out differ diff --git a/build/test/out/test_Vsubstract.out b/build/test/out/test_Vsubstract.out index e94c3de..b40e600 100755 Binary files a/build/test/out/test_Vsubstract.out and b/build/test/out/test_Vsubstract.out differ diff --git a/build/test/out/test_Vsubstract2.out b/build/test/out/test_Vsubstract2.out index 4775a3f..7cdd0fb 100755 Binary files a/build/test/out/test_Vsubstract2.out and b/build/test/out/test_Vsubstract2.out differ diff --git a/build/test/out/test_Vsubstract3.out b/build/test/out/test_Vsubstract3.out index 57f8f86..646cc3f 100755 Binary files a/build/test/out/test_Vsubstract3.out and b/build/test/out/test_Vsubstract3.out differ diff --git a/build/test/out/test_Zeitlohn.out b/build/test/out/test_Zeitlohn.out index 2371a21..6d0bb86 100755 Binary files a/build/test/out/test_Zeitlohn.out and b/build/test/out/test_Zeitlohn.out differ diff --git a/build/test/out/test_angebotserfolg.out b/build/test/out/test_angebotserfolg.out index 7401b03..60fe0a5 100755 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_binomial_coefficient.out b/build/test/out/test_binomial_coefficient.out index 2150a06..c9dd85e 100755 Binary files a/build/test/out/test_binomial_coefficient.out and b/build/test/out/test_binomial_coefficient.out differ diff --git a/build/test/out/test_boolesche_nicht.out b/build/test/out/test_boolesche_nicht.out index 1f1f321..3dc4fbd 100644 Binary files a/build/test/out/test_boolesche_nicht.out and b/build/test/out/test_boolesche_nicht.out differ diff --git a/build/test/out/test_boolesche_oder.out b/build/test/out/test_boolesche_oder.out index 82496e0..4afb610 100644 Binary files a/build/test/out/test_boolesche_oder.out and b/build/test/out/test_boolesche_oder.out differ diff --git a/build/test/out/test_boolesche_und.out b/build/test/out/test_boolesche_und.out index 9438e85..c3e4257 100644 Binary files a/build/test/out/test_boolesche_und.out and b/build/test/out/test_boolesche_und.out differ diff --git a/build/test/out/test_dezimal_binar_linksverschiebung.out b/build/test/out/test_dezimal_binar_linksverschiebung.out index 90be8a4..5894977 100644 Binary files a/build/test/out/test_dezimal_binar_linksverschiebung.out and b/build/test/out/test_dezimal_binar_linksverschiebung.out differ diff --git a/build/test/out/test_dezimal_binar_rechtsverschiebung.out b/build/test/out/test_dezimal_binar_rechtsverschiebung.out index 6dcaeb9..7c90afe 100644 Binary files a/build/test/out/test_dezimal_binar_rechtsverschiebung.out and b/build/test/out/test_dezimal_binar_rechtsverschiebung.out differ diff --git a/build/test/out/test_dezimal_to_bin.out b/build/test/out/test_dezimal_to_bin.out index b78862c..224a6c6 100644 Binary files a/build/test/out/test_dezimal_to_bin.out and b/build/test/out/test_dezimal_to_bin.out differ diff --git a/build/test/out/test_eigenkapital_Rentabilitaeten.out b/build/test/out/test_eigenkapital_Rentabilitaeten.out index f5de45a..99b580f 100755 Binary files a/build/test/out/test_eigenkapital_Rentabilitaeten.out and b/build/test/out/test_eigenkapital_Rentabilitaeten.out differ diff --git a/build/test/out/test_erloesfunktion.out b/build/test/out/test_erloesfunktion.out index 033ccbb..bb574c6 100755 Binary files a/build/test/out/test_erloesfunktion.out and b/build/test/out/test_erloesfunktion.out differ diff --git a/build/test/out/test_gesamtkapital_Rentabilitaeten.out b/build/test/out/test_gesamtkapital_Rentabilitaeten.out index c94e480..55f4014 100755 Binary files a/build/test/out/test_gesamtkapital_Rentabilitaeten.out and b/build/test/out/test_gesamtkapital_Rentabilitaeten.out differ diff --git a/build/test/out/test_grenzGewinn.out b/build/test/out/test_grenzGewinn.out index f250e9a..0ff0ef5 100755 Binary files a/build/test/out/test_grenzGewinn.out and b/build/test/out/test_grenzGewinn.out differ diff --git a/build/test/out/test_marktanteil.out b/build/test/out/test_marktanteil.out index e33d128..2938eb7 100755 Binary files a/build/test/out/test_marktanteil.out and b/build/test/out/test_marktanteil.out differ diff --git a/build/test/out/test_probability_from_tree.out b/build/test/out/test_probability_from_tree.out index 55e0951..54b2d82 100755 Binary files a/build/test/out/test_probability_from_tree.out and b/build/test/out/test_probability_from_tree.out differ diff --git a/build/test/out/test_prozentsatz.out b/build/test/out/test_prozentsatz.out new file mode 100644 index 0000000..df5f30a Binary files /dev/null and b/build/test/out/test_prozentsatz.out differ diff --git a/build/test/out/test_prozentwert.out b/build/test/out/test_prozentwert.out index db431be..a857dc5 100644 Binary files a/build/test/out/test_prozentwert.out and b/build/test/out/test_prozentwert.out differ diff --git a/build/test/out/test_trapezFlaeche.out b/build/test/out/test_trapezFlaeche.out index ceab3ea..14c76e7 100755 Binary files a/build/test/out/test_trapezFlaeche.out and b/build/test/out/test_trapezFlaeche.out differ diff --git a/build/test/out/test_vPunkt.out b/build/test/out/test_vPunkt.out index 7cd567b..e2fed8c 100755 Binary files a/build/test/out/test_vPunkt.out and b/build/test/out/test_vPunkt.out differ diff --git a/build/test/preprocess/files/test_prozentsatz.c b/build/test/preprocess/files/test_prozentsatz.c new file mode 100644 index 0000000..8781747 --- /dev/null +++ b/build/test/preprocess/files/test_prozentsatz.c @@ -0,0 +1,39 @@ +#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_prozentsatz_NeedToImplement(void) { + + double prozent = 8; + + double ein = 9; + + double result = prozentsatz(prozent, ein); + + double ergebnis = (ein / prozent); + + UnityAssertFloatsWithin((UNITY_FLOAT)((UNITY_FLOAT)((ergebnis)) * (UNITY_FLOAT)(0.00001f)), (UNITY_FLOAT)((UNITY_FLOAT)((ergebnis))), (UNITY_FLOAT)((UNITY_FLOAT)((result))), (( + + ((void *)0) + + )), (UNITY_UINT)((UNITY_UINT)(18))); + +} diff --git a/build/test/preprocess/includes/test_prozentsatz.c b/build/test/preprocess/includes/test_prozentsatz.c new file mode 100644 index 0000000..376e2c1 --- /dev/null +++ b/build/test/preprocess/includes/test_prozentsatz.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_Akkortrichtsatz.pass b/build/test/results/test_Akkortrichtsatz.pass index 4858592..cf98033 100644 --- a/build/test/results/test_Akkortrichtsatz.pass +++ b/build/test/results/test_Akkortrichtsatz.pass @@ -16,4 +16,4 @@ :ignored: 0 :stdout: - Testergebniss 552.000000 -:time: 0.028401200019288808 +:time: 0.02847789996303618 diff --git a/build/test/results/test_Anlagenabnutzungsgrad.pass b/build/test/results/test_Anlagenabnutzungsgrad.pass index 8e3afe1..1eaa90a 100644 --- a/build/test/results/test_Anlagenabnutzungsgrad.pass +++ b/build/test/results/test_Anlagenabnutzungsgrad.pass @@ -16,4 +16,4 @@ :ignored: 0 :stdout: - Testergebniss 60.000000 -:time: 0.02859190001618117 +:time: 0.028531700023449957 diff --git a/build/test/results/test_Anlagenintensitaet.pass b/build/test/results/test_Anlagenintensitaet.pass index ee4bf72..1a78394 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.02810589998262003 +:time: 0.38205750001361594 diff --git a/build/test/results/test_Anlagenproduktivitaet.pass b/build/test/results/test_Anlagenproduktivitaet.pass index 779cbd3..733a8fe 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.029457700031343848 +:time: 0.4469355999608524 diff --git a/build/test/results/test_Arbeitsproduktivitaet.pass b/build/test/results/test_Arbeitsproduktivitaet.pass index 01daf3a..180e01e 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.028612399997655302 +:time: 0.41143279999960214 diff --git a/build/test/results/test_ByOne.pass b/build/test/results/test_ByOne.pass index 1e7083d..6ebda8b 100644 --- a/build/test/results/test_ByOne.pass +++ b/build/test/results/test_ByOne.pass @@ -16,4 +16,4 @@ :ignored: 0 :stdout: - 'Das Ergebnis lautet: 2' -:time: 0.019392999995034188 +:time: 0.01876740000443533 diff --git a/build/test/results/test_Cashflow_zu_Gesamtkapital.pass b/build/test/results/test_Cashflow_zu_Gesamtkapital.pass index 0e7e4f7..530ffb0 100644 --- a/build/test/results/test_Cashflow_zu_Gesamtkapital.pass +++ b/build/test/results/test_Cashflow_zu_Gesamtkapital.pass @@ -16,4 +16,4 @@ :ignored: 0 :stdout: - Testergebniss 0.158038 -:time: 0.028729200013913214 +:time: 0.41603959997883067 diff --git a/build/test/results/test_Dynamische_Amortisationszeit.pass b/build/test/results/test_Dynamische_Amortisationszeit.pass index 830ec04..55e98e0 100644 --- a/build/test/results/test_Dynamische_Amortisationszeit.pass +++ b/build/test/results/test_Dynamische_Amortisationszeit.pass @@ -16,4 +16,4 @@ :ignored: 0 :stdout: - Testergebniss 189.421906 -:time: 0.034111700020730495 +:time: 0.283066299976781 diff --git a/build/test/results/test_Effektivverzinsung.pass b/build/test/results/test_Effektivverzinsung.pass index f7a00f3..f066d49 100644 --- a/build/test/results/test_Effektivverzinsung.pass +++ b/build/test/results/test_Effektivverzinsung.pass @@ -16,4 +16,4 @@ :ignored: 0 :stdout: - Testergebniss 16.034390 -:time: 0.026179099979344755 +:time: 0.4076397999888286 diff --git a/build/test/results/test_Finanzierungsregeln.pass b/build/test/results/test_Finanzierungsregeln.pass index 6e7dedb..d370b86 100644 --- a/build/test/results/test_Finanzierungsregeln.pass +++ b/build/test/results/test_Finanzierungsregeln.pass @@ -16,4 +16,4 @@ :ignored: 0 :stdout: - Testergebniss 0.051041 -:time: 0.025732900016009808 +:time: 0.3936008000164293 diff --git a/build/test/results/test_GewinnMaximum.pass b/build/test/results/test_GewinnMaximum.pass index 77c8e0f..4ce894d 100644 --- a/build/test/results/test_GewinnMaximum.pass +++ b/build/test/results/test_GewinnMaximum.pass @@ -16,4 +16,4 @@ :ignored: 0 :stdout: - Testergebniss 251.000000 -:time: 0.02743070002179593 +:time: 0.3876350999926217 diff --git a/build/test/results/test_Kalkulatorische_Zinsen.pass b/build/test/results/test_Kalkulatorische_Zinsen.pass index 6b4f327..0d90e22 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.02849850000347942 +:time: 0.3963921999675222 diff --git a/build/test/results/test_Kritische_Menge.pass b/build/test/results/test_Kritische_Menge.pass index 2f6bb3b..a09f204 100644 --- a/build/test/results/test_Kritische_Menge.pass +++ b/build/test/results/test_Kritische_Menge.pass @@ -16,4 +16,4 @@ :ignored: 0 :stdout: - Testergebniss -12.096026 -:time: 0.025838100002147257 +:time: 0.2776696999790147 diff --git a/build/test/results/test_Stueckzeitakkort.pass b/build/test/results/test_Stueckzeitakkort.pass index 5c03b07..dc399b0 100644 --- a/build/test/results/test_Stueckzeitakkort.pass +++ b/build/test/results/test_Stueckzeitakkort.pass @@ -16,4 +16,4 @@ :ignored: 0 :stdout: - '96600.000000' -:time: 0.02566009998554364 +:time: 0.42096149997087196 diff --git a/build/test/results/test_Vadd.pass b/build/test/results/test_Vadd.pass index aeefaa7..e6a2949 100644 --- a/build/test/results/test_Vadd.pass +++ b/build/test/results/test_Vadd.pass @@ -15,4 +15,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.024776100006420165 +:time: 0.44404789997497573 diff --git a/build/test/results/test_Vaddx2.pass b/build/test/results/test_Vaddx2.pass index 7ae151f..6110055 100644 --- a/build/test/results/test_Vaddx2.pass +++ b/build/test/results/test_Vaddx2.pass @@ -15,4 +15,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.025767600047402084 +:time: 0.4006904999841936 diff --git a/build/test/results/test_Vaddx3.pass b/build/test/results/test_Vaddx3.pass index c547152..18afd05 100644 --- a/build/test/results/test_Vaddx3.pass +++ b/build/test/results/test_Vaddx3.pass @@ -15,4 +15,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.025435800023842603 +:time: 0.2845025999704376 diff --git a/build/test/results/test_Vangle.pass b/build/test/results/test_Vangle.pass index 91ac4a1..17d52ac 100644 --- a/build/test/results/test_Vangle.pass +++ b/build/test/results/test_Vangle.pass @@ -15,4 +15,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.02638599998317659 +:time: 0.41955010005040094 diff --git a/build/test/results/test_Vlength.pass b/build/test/results/test_Vlength.pass index 0b77356..06ee24f 100644 --- a/build/test/results/test_Vlength.pass +++ b/build/test/results/test_Vlength.pass @@ -15,4 +15,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.026574599964078516 +:time: 0.32186769996769726 diff --git a/build/test/results/test_Vmiddle.pass b/build/test/results/test_Vmiddle.pass index 7d72fe9..1a09f9a 100644 --- a/build/test/results/test_Vmiddle.pass +++ b/build/test/results/test_Vmiddle.pass @@ -15,4 +15,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.02491470001405105 +:time: 0.26781449996633455 diff --git a/build/test/results/test_Vmiddle2.pass b/build/test/results/test_Vmiddle2.pass index e3c930f..6f97c7c 100644 --- a/build/test/results/test_Vmiddle2.pass +++ b/build/test/results/test_Vmiddle2.pass @@ -15,4 +15,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.02500359999248758 +:time: 0.4327902000513859 diff --git a/build/test/results/test_Vmiddle3.pass b/build/test/results/test_Vmiddle3.pass index 9524337..6453483 100644 --- a/build/test/results/test_Vmiddle3.pass +++ b/build/test/results/test_Vmiddle3.pass @@ -15,4 +15,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.026181900000665337 +:time: 0.37918960000388324 diff --git a/build/test/results/test_Vmultiplier.pass b/build/test/results/test_Vmultiplier.pass index 4b10e09..f1f2a01 100644 --- a/build/test/results/test_Vmultiplier.pass +++ b/build/test/results/test_Vmultiplier.pass @@ -15,4 +15,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.025181700009852648 +:time: 0.4234520000172779 diff --git a/build/test/results/test_Vmultiplier2.pass b/build/test/results/test_Vmultiplier2.pass index c788aec..ef360c5 100644 --- a/build/test/results/test_Vmultiplier2.pass +++ b/build/test/results/test_Vmultiplier2.pass @@ -15,4 +15,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.025405800028238446 +:time: 0.3891658000065945 diff --git a/build/test/results/test_Vmultiplier3.pass b/build/test/results/test_Vmultiplier3.pass index 72a4e60..0292a70 100644 --- a/build/test/results/test_Vmultiplier3.pass +++ b/build/test/results/test_Vmultiplier3.pass @@ -15,4 +15,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.026071300031617284 +:time: 0.3366535999812186 diff --git a/build/test/results/test_Vparallel.pass b/build/test/results/test_Vparallel.pass index 0dd0e20..80e943b 100644 --- a/build/test/results/test_Vparallel.pass +++ b/build/test/results/test_Vparallel.pass @@ -15,4 +15,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.027275800006464124 +:time: 0.2850979999639094 diff --git a/build/test/results/test_Vshift.pass b/build/test/results/test_Vshift.pass index fb7fc5d..d7c740e 100644 --- a/build/test/results/test_Vshift.pass +++ b/build/test/results/test_Vshift.pass @@ -15,4 +15,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.025376200035680085 +:time: 0.3858800000161864 diff --git a/build/test/results/test_Vskalort.pass b/build/test/results/test_Vskalort.pass index f5142cb..ba5201d 100644 --- a/build/test/results/test_Vskalort.pass +++ b/build/test/results/test_Vskalort.pass @@ -15,4 +15,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.025818900030571967 +:time: 0.4204969999846071 diff --git a/build/test/results/test_Vsubstract.pass b/build/test/results/test_Vsubstract.pass index 5626bb6..cf1e019 100644 --- a/build/test/results/test_Vsubstract.pass +++ b/build/test/results/test_Vsubstract.pass @@ -15,4 +15,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.026029100001323968 +:time: 0.389280500006862 diff --git a/build/test/results/test_Vsubstract2.pass b/build/test/results/test_Vsubstract2.pass index acde23d..490cebf 100644 --- a/build/test/results/test_Vsubstract2.pass +++ b/build/test/results/test_Vsubstract2.pass @@ -15,4 +15,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.027247299964074045 +:time: 0.40249690000200644 diff --git a/build/test/results/test_Vsubstract3.pass b/build/test/results/test_Vsubstract3.pass index f140967..f9b68c8 100644 --- a/build/test/results/test_Vsubstract3.pass +++ b/build/test/results/test_Vsubstract3.pass @@ -15,4 +15,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.02503009996144101 +:time: 0.4024130000034347 diff --git a/build/test/results/test_Zeitlohn.pass b/build/test/results/test_Zeitlohn.pass index 2c0f167..d7e15da 100644 --- a/build/test/results/test_Zeitlohn.pass +++ b/build/test/results/test_Zeitlohn.pass @@ -16,4 +16,4 @@ :ignored: 0 :stdout: - Testergebniss 3450.000000 -:time: 0.026196899998467416 +:time: 0.4080194999696687 diff --git a/build/test/results/test_angebotserfolg.pass b/build/test/results/test_angebotserfolg.pass index 8117c15..a6ba0a2 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.0256659000297077 +:time: 0.41260340000735596 diff --git a/build/test/results/test_binomial_coefficient.pass b/build/test/results/test_binomial_coefficient.pass index 1d1b4be..6e5b7b3 100644 --- a/build/test/results/test_binomial_coefficient.pass +++ b/build/test/results/test_binomial_coefficient.pass @@ -16,4 +16,4 @@ :ignored: 0 :stdout: - Testergebniss 1 -:time: 0.025232200045138597 +:time: 0.3992531999829225 diff --git a/build/test/results/test_boolesche_nicht.pass b/build/test/results/test_boolesche_nicht.pass index b6cd5de..a6e6722 100644 --- a/build/test/results/test_boolesche_nicht.pass +++ b/build/test/results/test_boolesche_nicht.pass @@ -15,4 +15,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.026060799951665103 +:time: 0.3148446999839507 diff --git a/build/test/results/test_boolesche_oder.pass b/build/test/results/test_boolesche_oder.pass index fd1ddc2..bfcf095 100644 --- a/build/test/results/test_boolesche_oder.pass +++ b/build/test/results/test_boolesche_oder.pass @@ -15,4 +15,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.027831299987155944 +:time: 0.29083100002026185 diff --git a/build/test/results/test_boolesche_und.pass b/build/test/results/test_boolesche_und.pass index 6b9bfb9..6404be0 100644 --- a/build/test/results/test_boolesche_und.pass +++ b/build/test/results/test_boolesche_und.pass @@ -15,4 +15,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.02526900003431365 +:time: 0.5539394000079483 diff --git a/build/test/results/test_dezimal_binar_linksverschiebung.pass b/build/test/results/test_dezimal_binar_linksverschiebung.pass index 07dfa87..478f054 100644 --- a/build/test/results/test_dezimal_binar_linksverschiebung.pass +++ b/build/test/results/test_dezimal_binar_linksverschiebung.pass @@ -16,4 +16,4 @@ :ignored: 0 :stdout: - Testergebniss 111110 -:time: 0.028678299975581467 +:time: 0.4104460999951698 diff --git a/build/test/results/test_dezimal_binar_rechtsverschiebung.pass b/build/test/results/test_dezimal_binar_rechtsverschiebung.pass index 85c195a..57ce621 100644 --- a/build/test/results/test_dezimal_binar_rechtsverschiebung.pass +++ b/build/test/results/test_dezimal_binar_rechtsverschiebung.pass @@ -16,4 +16,4 @@ :ignored: 0 :stdout: - Testergebniss 1111 -:time: 0.028869399975519627 +:time: 0.31114800000796095 diff --git a/build/test/results/test_dezimal_to_bin.pass b/build/test/results/test_dezimal_to_bin.pass index 1b304e7..8a1db27 100644 --- a/build/test/results/test_dezimal_to_bin.pass +++ b/build/test/results/test_dezimal_to_bin.pass @@ -16,4 +16,4 @@ :ignored: 0 :stdout: - Testergebniss 11111 -:time: 0.025422299979254603 +:time: 0.2742368000326678 diff --git a/build/test/results/test_eigenkapital_Rentabilitaeten.pass b/build/test/results/test_eigenkapital_Rentabilitaeten.pass index 1290ef2..2b966a4 100644 --- a/build/test/results/test_eigenkapital_Rentabilitaeten.pass +++ b/build/test/results/test_eigenkapital_Rentabilitaeten.pass @@ -16,4 +16,4 @@ :ignored: 0 :stdout: - Testergebniss 62.500000 -:time: 0.029879099980462343 +:time: 0.41410380002344027 diff --git a/build/test/results/test_erloesfunktion.pass b/build/test/results/test_erloesfunktion.pass index f9d5e64..7c77320 100644 --- a/build/test/results/test_erloesfunktion.pass +++ b/build/test/results/test_erloesfunktion.pass @@ -16,4 +16,4 @@ :ignored: 0 :stdout: - Testergebniss 4000.000000 -:time: 0.02628220000769943 +:time: 0.3111295000417158 diff --git a/build/test/results/test_gesamtkapital_Rentabilitaeten.pass b/build/test/results/test_gesamtkapital_Rentabilitaeten.pass index 3ef0e43..0f4ebea 100644 --- a/build/test/results/test_gesamtkapital_Rentabilitaeten.pass +++ b/build/test/results/test_gesamtkapital_Rentabilitaeten.pass @@ -16,4 +16,4 @@ :ignored: 0 :stdout: - Testergebniss 27.136929 -:time: 0.029897799948230386 +:time: 0.43172059999778867 diff --git a/build/test/results/test_grenzGewinn.pass b/build/test/results/test_grenzGewinn.pass index 2c23c07..28c8682 100644 --- a/build/test/results/test_grenzGewinn.pass +++ b/build/test/results/test_grenzGewinn.pass @@ -16,4 +16,4 @@ :ignored: 0 :stdout: - Testergebniss 1141.000000 -:time: 0.026550900016445667 +:time: 0.4199370000278577 diff --git a/build/test/results/test_marktanteil.pass b/build/test/results/test_marktanteil.pass index b039193..7fe2c40 100644 --- a/build/test/results/test_marktanteil.pass +++ b/build/test/results/test_marktanteil.pass @@ -16,4 +16,4 @@ :ignored: 0 :stdout: - Testergebniss 21.739130 -:time: 0.026416699984110892 +:time: 0.4102081999881193 diff --git a/build/test/results/test_probability_from_tree.pass b/build/test/results/test_probability_from_tree.pass index 471ee88..25822be 100644 --- a/build/test/results/test_probability_from_tree.pass +++ b/build/test/results/test_probability_from_tree.pass @@ -15,4 +15,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.029587300028651953 +:time: 0.40110659995116293 diff --git a/build/test/results/test_prozentsatz.pass b/build/test/results/test_prozentsatz.pass new file mode 100644 index 0000000..7eb0109 --- /dev/null +++ b/build/test/results/test_prozentsatz.pass @@ -0,0 +1,18 @@ +--- +:source: + :path: test + :file: test_prozentsatz.c +:successes: +- :test: test_prozentsatz_NeedToImplement + :line: 13 + :message: '' + :unity_test_time: 0 +:failures: [] +:ignores: [] +:counts: + :total: 1 + :passed: 1 + :failed: 0 + :ignored: 0 +:stdout: [] +:time: 0.4334632999962196 diff --git a/build/test/results/test_prozentwert.pass b/build/test/results/test_prozentwert.pass index 2e715c1..3022abf 100644 --- a/build/test/results/test_prozentwert.pass +++ b/build/test/results/test_prozentwert.pass @@ -15,4 +15,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.027786599996034056 +:time: 0.2970899000065401 diff --git a/build/test/results/test_trapezFlaeche.pass b/build/test/results/test_trapezFlaeche.pass index 98f72ae..8f52660 100644 --- a/build/test/results/test_trapezFlaeche.pass +++ b/build/test/results/test_trapezFlaeche.pass @@ -17,4 +17,4 @@ :stdout: - 'Flaeche vom Trapez betrÃĪgt: 21.000000' - Testergebniss 21.000000 -:time: 0.02711040002759546 +:time: 0.40697989996988326 diff --git a/build/test/results/test_vPunkt.pass b/build/test/results/test_vPunkt.pass index 59586e0..34a6ada 100644 --- a/build/test/results/test_vPunkt.pass +++ b/build/test/results/test_vPunkt.pass @@ -15,4 +15,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.02504819998284802 +:time: 0.27464469999540597 diff --git a/build/test/runners/test_prozentsatz_runner.c b/build/test/runners/test_prozentsatz_runner.c new file mode 100644 index 0000000..63b90cb --- /dev/null +++ b/build/test/runners/test_prozentsatz_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_prozentsatz_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_prozentsatz.c"); + run_test(test_prozentsatz_NeedToImplement, "test_prozentsatz_NeedToImplement", 13); + + return UnityEnd(); +} diff --git a/test/test_prozentsatz.c b/test/test_prozentsatz.c new file mode 100644 index 0000000..c21ad5a --- /dev/null +++ b/test/test_prozentsatz.c @@ -0,0 +1,19 @@ +#include "unity.h" +#include +#include "funktion.h" + +void setUp(void) +{ +} + +void tearDown(void) +{ +} + +void test_prozentsatz_NeedToImplement(void) { + double prozent = 8; + double ein = 9; + double result = prozentsatz(prozent, ein); + double ergebnis = (ein / prozent); + TEST_ASSERT_EQUAL_FLOAT(ergebnis, result); +} \ No newline at end of file