diff --git a/build/test/cache/test_grundwert.c b/build/test/cache/test_grundwert.c new file mode 100644 index 0000000..992d11d --- /dev/null +++ b/build/test/cache/test_grundwert.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_grundwert_NeedToImplement(void) { + + double prozent = 8; + + double ein = 10; + + double result = grundwert(ein, prozent); + + double ergebnis = (ein / prozent) * 100; + + 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_grundwert.d b/build/test/dependencies/test_grundwert.d new file mode 100644 index 0000000..430faba --- /dev/null +++ b/build/test/dependencies/test_grundwert.d @@ -0,0 +1,4 @@ +build/test/out/c/test_grundwert.o: test/test_grundwert.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_grundwert_runner.d b/build/test/dependencies/test_grundwert_runner.d new file mode 100644 index 0000000..2fbfe7c --- /dev/null +++ b/build/test/dependencies/test_grundwert_runner.d @@ -0,0 +1,4 @@ +build/test/out/c/test_grundwert_runner.o: \ + build/test/runners/test_grundwert_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 e5381da..90eef62 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_grundwert.o b/build/test/out/c/test_grundwert.o new file mode 100644 index 0000000..c07fa7e Binary files /dev/null and b/build/test/out/c/test_grundwert.o differ diff --git a/build/test/out/c/test_grundwert_runner.o b/build/test/out/c/test_grundwert_runner.o new file mode 100644 index 0000000..2119806 Binary files /dev/null and b/build/test/out/c/test_grundwert_runner.o differ diff --git a/build/test/out/test_Akkortrichtsatz.out b/build/test/out/test_Akkortrichtsatz.out index f29e478..960bd23 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 512ffeb..5f00443 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 f4f50c2..466fbd9 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 0602a64..016cea0 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 a6faff2..3b742bc 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 20a95d6..eabe171 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 739f91d..efdd988 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 97cdbad..54c3676 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 35383e7..beb8082 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 3325278..c3aaead 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 76c3e83..c981d19 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 994b5dc..71f9cbc 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 0540bd4..6337211 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 de6ed40..d7bd860 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 e9e53b7..2f1a1d9 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 29d331e..d702d04 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 d702525..a32bb69 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 5406c98..75959e8 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 5c2747d..891a18a 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 ca72c5a..daded6b 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 d91aaf9..0d75cfa 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 e3b681b..b718991 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 b5a6579..105b741 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 e7faf19..8ce10c1 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 968798e..36d38f0 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 cbcb03e..9d1f8aa 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 88d623b..35e8a6d 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 b40e600..9904920 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 7cdd0fb..d5e2d07 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 646cc3f..4626ef0 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 6d0bb86..14ccd15 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 60fe0a5..ff49e46 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 c9dd85e..08f0444 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 3dc4fbd..d50b567 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 4afb610..9da5c2b 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 c3e4257..98b6256 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 5894977..55472e3 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 7c90afe..776323d 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 224a6c6..ae01037 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 99b580f..4b6c219 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 bb574c6..e2f71aa 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 55f4014..fd4c1c3 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 0ff0ef5..ec5fe8f 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_grundwert.out b/build/test/out/test_grundwert.out new file mode 100644 index 0000000..8ee918f Binary files /dev/null and b/build/test/out/test_grundwert.out differ diff --git a/build/test/out/test_marktanteil.out b/build/test/out/test_marktanteil.out index 2938eb7..d887db8 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 54b2d82..3365ec9 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 index df5f30a..c18a6ca 100644 Binary files a/build/test/out/test_prozentsatz.out 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 a857dc5..0042961 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 14c76e7..44d5f92 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 e2fed8c..aadcc45 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_grundwert.c b/build/test/preprocess/files/test_grundwert.c new file mode 100644 index 0000000..992d11d --- /dev/null +++ b/build/test/preprocess/files/test_grundwert.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_grundwert_NeedToImplement(void) { + + double prozent = 8; + + double ein = 10; + + double result = grundwert(ein, prozent); + + double ergebnis = (ein / prozent) * 100; + + 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_grundwert.c b/build/test/preprocess/includes/test_grundwert.c new file mode 100644 index 0000000..376e2c1 --- /dev/null +++ b/build/test/preprocess/includes/test_grundwert.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 cf98033..90ebdce 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.02847789996303618 +:time: 0.4093384000007063 diff --git a/build/test/results/test_Anlagenabnutzungsgrad.pass b/build/test/results/test_Anlagenabnutzungsgrad.pass index 1eaa90a..8984899 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.028531700023449957 +:time: 0.4877040999708697 diff --git a/build/test/results/test_Anlagenintensitaet.pass b/build/test/results/test_Anlagenintensitaet.pass index 1a78394..751e5d1 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.38205750001361594 +:time: 0.43649239995284006 diff --git a/build/test/results/test_Anlagenproduktivitaet.pass b/build/test/results/test_Anlagenproduktivitaet.pass index 733a8fe..b2fe504 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.4469355999608524 +:time: 0.41834400000516325 diff --git a/build/test/results/test_Arbeitsproduktivitaet.pass b/build/test/results/test_Arbeitsproduktivitaet.pass index 180e01e..bbc8e1e 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.41143279999960214 +:time: 0.4210616999771446 diff --git a/build/test/results/test_ByOne.pass b/build/test/results/test_ByOne.pass index 6ebda8b..6860a8f 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.01876740000443533 +:time: 0.01995149999856949 diff --git a/build/test/results/test_Cashflow_zu_Gesamtkapital.pass b/build/test/results/test_Cashflow_zu_Gesamtkapital.pass index 530ffb0..0c71008 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.41603959997883067 +:time: 0.3978588000172749 diff --git a/build/test/results/test_Dynamische_Amortisationszeit.pass b/build/test/results/test_Dynamische_Amortisationszeit.pass index 55e98e0..479b8da 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.283066299976781 +:time: 0.3884043999714777 diff --git a/build/test/results/test_Effektivverzinsung.pass b/build/test/results/test_Effektivverzinsung.pass index f066d49..de8b4ee 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.4076397999888286 +:time: 0.395950099977199 diff --git a/build/test/results/test_Finanzierungsregeln.pass b/build/test/results/test_Finanzierungsregeln.pass index d370b86..43715c3 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.3936008000164293 +:time: 0.3984014000161551 diff --git a/build/test/results/test_GewinnMaximum.pass b/build/test/results/test_GewinnMaximum.pass index 4ce894d..75965d2 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.3876350999926217 +:time: 0.40882010001223534 diff --git a/build/test/results/test_Kalkulatorische_Zinsen.pass b/build/test/results/test_Kalkulatorische_Zinsen.pass index 0d90e22..cd4eb73 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.3963921999675222 +:time: 0.39265769999474287 diff --git a/build/test/results/test_Kritische_Menge.pass b/build/test/results/test_Kritische_Menge.pass index a09f204..17a9693 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.2776696999790147 +:time: 0.3048316999920644 diff --git a/build/test/results/test_Stueckzeitakkort.pass b/build/test/results/test_Stueckzeitakkort.pass index dc399b0..808a0e1 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.42096149997087196 +:time: 0.3889103999827057 diff --git a/build/test/results/test_Vadd.pass b/build/test/results/test_Vadd.pass index e6a2949..95deafd 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.44404789997497573 +:time: 0.39872190001187846 diff --git a/build/test/results/test_Vaddx2.pass b/build/test/results/test_Vaddx2.pass index 6110055..f5ad102 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.4006904999841936 +:time: 0.31926859996747226 diff --git a/build/test/results/test_Vaddx3.pass b/build/test/results/test_Vaddx3.pass index 18afd05..fcb306f 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.2845025999704376 +:time: 0.41292049997719005 diff --git a/build/test/results/test_Vangle.pass b/build/test/results/test_Vangle.pass index 17d52ac..fb3c96b 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.41955010005040094 +:time: 0.3026806000270881 diff --git a/build/test/results/test_Vlength.pass b/build/test/results/test_Vlength.pass index 06ee24f..8155112 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.32186769996769726 +:time: 0.5016635999782011 diff --git a/build/test/results/test_Vmiddle.pass b/build/test/results/test_Vmiddle.pass index 1a09f9a..0609bf6 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.26781449996633455 +:time: 0.38415270001860335 diff --git a/build/test/results/test_Vmiddle2.pass b/build/test/results/test_Vmiddle2.pass index 6f97c7c..d8526f6 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.4327902000513859 +:time: 0.38195040001301095 diff --git a/build/test/results/test_Vmiddle3.pass b/build/test/results/test_Vmiddle3.pass index 6453483..b7d4149 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.37918960000388324 +:time: 0.40547509997850284 diff --git a/build/test/results/test_Vmultiplier.pass b/build/test/results/test_Vmultiplier.pass index f1f2a01..c8075be 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.4234520000172779 +:time: 0.39097680000122637 diff --git a/build/test/results/test_Vmultiplier2.pass b/build/test/results/test_Vmultiplier2.pass index ef360c5..8c820c7 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.3891658000065945 +:time: 0.3949787999736145 diff --git a/build/test/results/test_Vmultiplier3.pass b/build/test/results/test_Vmultiplier3.pass index 0292a70..dc7b063 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.3366535999812186 +:time: 0.4303751999977976 diff --git a/build/test/results/test_Vparallel.pass b/build/test/results/test_Vparallel.pass index 80e943b..0c13a35 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.2850979999639094 +:time: 0.4132583000464365 diff --git a/build/test/results/test_Vshift.pass b/build/test/results/test_Vshift.pass index d7c740e..7dd10cc 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.3858800000161864 +:time: 0.44492239999817684 diff --git a/build/test/results/test_Vskalort.pass b/build/test/results/test_Vskalort.pass index ba5201d..b5e16ea 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.4204969999846071 +:time: 0.25989840005058795 diff --git a/build/test/results/test_Vsubstract.pass b/build/test/results/test_Vsubstract.pass index cf1e019..3b13949 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.389280500006862 +:time: 0.3768953999970108 diff --git a/build/test/results/test_Vsubstract2.pass b/build/test/results/test_Vsubstract2.pass index 490cebf..91e38ae 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.40249690000200644 +:time: 0.3113014999544248 diff --git a/build/test/results/test_Vsubstract3.pass b/build/test/results/test_Vsubstract3.pass index f9b68c8..fbed4d2 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.4024130000034347 +:time: 0.3604967000428587 diff --git a/build/test/results/test_Zeitlohn.pass b/build/test/results/test_Zeitlohn.pass index d7e15da..6d4af28 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.4080194999696687 +:time: 0.39100790000520647 diff --git a/build/test/results/test_angebotserfolg.pass b/build/test/results/test_angebotserfolg.pass index a6ba0a2..0ce73b4 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.41260340000735596 +:time: 0.41537240002071485 diff --git a/build/test/results/test_binomial_coefficient.pass b/build/test/results/test_binomial_coefficient.pass index 6e5b7b3..d686da2 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.3992531999829225 +:time: 0.2878358999732882 diff --git a/build/test/results/test_boolesche_nicht.pass b/build/test/results/test_boolesche_nicht.pass index a6e6722..a61a744 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.3148446999839507 +:time: 0.40830269997240975 diff --git a/build/test/results/test_boolesche_oder.pass b/build/test/results/test_boolesche_oder.pass index bfcf095..c7030f5 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.29083100002026185 +:time: 0.5818662999663502 diff --git a/build/test/results/test_boolesche_und.pass b/build/test/results/test_boolesche_und.pass index 6404be0..3bb7366 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.5539394000079483 +:time: 0.40215829998487607 diff --git a/build/test/results/test_dezimal_binar_linksverschiebung.pass b/build/test/results/test_dezimal_binar_linksverschiebung.pass index 478f054..92b4a19 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.4104460999951698 +:time: 0.2959346999996342 diff --git a/build/test/results/test_dezimal_binar_rechtsverschiebung.pass b/build/test/results/test_dezimal_binar_rechtsverschiebung.pass index 57ce621..755aa1a 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.31114800000796095 +:time: 0.39889749995199963 diff --git a/build/test/results/test_dezimal_to_bin.pass b/build/test/results/test_dezimal_to_bin.pass index 8a1db27..78111b2 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.2742368000326678 +:time: 0.3882092999992892 diff --git a/build/test/results/test_eigenkapital_Rentabilitaeten.pass b/build/test/results/test_eigenkapital_Rentabilitaeten.pass index 2b966a4..ae6c9d5 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.41410380002344027 +:time: 0.4053054000250995 diff --git a/build/test/results/test_erloesfunktion.pass b/build/test/results/test_erloesfunktion.pass index 7c77320..0de98a2 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.3111295000417158 +:time: 0.2785629999707453 diff --git a/build/test/results/test_gesamtkapital_Rentabilitaeten.pass b/build/test/results/test_gesamtkapital_Rentabilitaeten.pass index 0f4ebea..3670383 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.43172059999778867 +:time: 0.36058879998745397 diff --git a/build/test/results/test_grenzGewinn.pass b/build/test/results/test_grenzGewinn.pass index 28c8682..c51ed2b 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.4199370000278577 +:time: 0.386524899979122 diff --git a/build/test/results/test_grundwert.pass b/build/test/results/test_grundwert.pass new file mode 100644 index 0000000..4b849ca --- /dev/null +++ b/build/test/results/test_grundwert.pass @@ -0,0 +1,18 @@ +--- +:source: + :path: test + :file: test_grundwert.c +:successes: +- :test: test_grundwert_NeedToImplement + :line: 13 + :message: '' + :unity_test_time: 0 +:failures: [] +:ignores: [] +:counts: + :total: 1 + :passed: 1 + :failed: 0 + :ignored: 0 +:stdout: [] +:time: 0.4903716999688186 diff --git a/build/test/results/test_marktanteil.pass b/build/test/results/test_marktanteil.pass index 7fe2c40..9248c84 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.4102081999881193 +:time: 0.37344260001555085 diff --git a/build/test/results/test_probability_from_tree.pass b/build/test/results/test_probability_from_tree.pass index 25822be..0d7374e 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.40110659995116293 +:time: 0.39726399997016415 diff --git a/build/test/results/test_prozentsatz.pass b/build/test/results/test_prozentsatz.pass index 7eb0109..5b6fce4 100644 --- a/build/test/results/test_prozentsatz.pass +++ b/build/test/results/test_prozentsatz.pass @@ -15,4 +15,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.4334632999962196 +:time: 0.4097944000386633 diff --git a/build/test/results/test_prozentwert.pass b/build/test/results/test_prozentwert.pass index 3022abf..1e7cf30 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.2970899000065401 +:time: 0.450758200022392 diff --git a/build/test/results/test_trapezFlaeche.pass b/build/test/results/test_trapezFlaeche.pass index 8f52660..17f25e3 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.40697989996988326 +:time: 0.3859912999905646 diff --git a/build/test/results/test_vPunkt.pass b/build/test/results/test_vPunkt.pass index 34a6ada..753c452 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.27464469999540597 +:time: 0.4055222000461072 diff --git a/build/test/runners/test_grundwert_runner.c b/build/test/runners/test_grundwert_runner.c new file mode 100644 index 0000000..68e5657 --- /dev/null +++ b/build/test/runners/test_grundwert_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_grundwert_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_grundwert.c"); + run_test(test_grundwert_NeedToImplement, "test_grundwert_NeedToImplement", 13); + + return UnityEnd(); +} diff --git a/test/test_grundwert.c b/test/test_grundwert.c new file mode 100644 index 0000000..fbba786 --- /dev/null +++ b/test/test_grundwert.c @@ -0,0 +1,19 @@ +#include "unity.h" +#include +#include "funktion.h" + +void setUp(void) +{ +} + +void tearDown(void) +{ +} + +void test_grundwert_NeedToImplement(void) { + double prozent = 8; + double ein = 10; + double result = grundwert(ein, prozent); + double ergebnis = (ein / prozent) * 100; + TEST_ASSERT_EQUAL_FLOAT(ergebnis, result); +} \ No newline at end of file