diff --git a/build/test/cache/test_binomial_coefficient.c b/build/test/cache/test_binomial_coefficient.c new file mode 100644 index 0000000..80a8483 --- /dev/null +++ b/build/test/cache/test_binomial_coefficient.c @@ -0,0 +1,39 @@ +#include "src/funktion.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_binomial_coefficient_NeedToImplement(void) + +{ + + int a=2; + + int b=3; + + int result=binomial_coefficient(a,b); + + int ergebnis=1; + + printf("Testergebniss %d", ergebnis); + + UnityAssertEqualNumber((UNITY_INT)((result)), (UNITY_INT)((ergebnis)), ( + + ((void *)0) + + ), (UNITY_UINT)(18), UNITY_DISPLAY_STYLE_INT); + +} diff --git a/build/test/dependencies/test_binomial_coefficient.d b/build/test/dependencies/test_binomial_coefficient.d new file mode 100644 index 0000000..76e5bff --- /dev/null +++ b/build/test/dependencies/test_binomial_coefficient.d @@ -0,0 +1,5 @@ +build/test/out/c/test_binomial_coefficient.o: \ + test/test_binomial_coefficient.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/funktion.h diff --git a/build/test/dependencies/test_binomial_coefficient_runner.d b/build/test/dependencies/test_binomial_coefficient_runner.d new file mode 100644 index 0000000..c4e2bad --- /dev/null +++ b/build/test/dependencies/test_binomial_coefficient_runner.d @@ -0,0 +1,4 @@ +build/test/out/c/test_binomial_coefficient_runner.o: \ + build/test/runners/test_binomial_coefficient_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/funktion.o b/build/test/out/c/funktion.o index 5849b4c..f21b35e 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_binomial_coefficient.o b/build/test/out/c/test_binomial_coefficient.o new file mode 100644 index 0000000..1971f21 Binary files /dev/null and b/build/test/out/c/test_binomial_coefficient.o differ diff --git a/build/test/out/c/test_binomial_coefficient_runner.o b/build/test/out/c/test_binomial_coefficient_runner.o new file mode 100644 index 0000000..1f77923 Binary files /dev/null and b/build/test/out/c/test_binomial_coefficient_runner.o differ diff --git a/build/test/out/test_Akkortrichtsatz.out b/build/test/out/test_Akkortrichtsatz.out index 55b9920..dc6e52b 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 d720e5f..8eac273 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 0fdf481..5fb7402 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 c3e9b48..3febf8b 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 de59953..41ffba8 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 e78e43f..f2e35bb 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 f69b43f..21d0859 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 76a2993..f94ff73 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 17042bc..9c50105 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 d4fc6c6..1497d36 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 d241e24..5377f3b 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 91e0444..fd053f9 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 2ef1d08..f1e20af 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 82b6cb6..9e8c1d9 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 a24f461..321379e 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 5b6131e..ee0980c 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 e5930b0..b474aff 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 1f475b9..9ec973a 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 e43166b..82c4e63 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 7884c49..4fe1dea 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 34c8a95..763e78a 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 d44d944..f120df7 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 841db79..aafe31e 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 de0eeba..6aa0220 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 a315a04..2d92dfc 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 9dfa729..01f7dba 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 9637342..15ffab2 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 179420d..b03a246 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 f409cc7..47f5d0d 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 a166710..3dfd829 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 c3f7f34..53c5659 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 000e7f1..6df815b 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 new file mode 100755 index 0000000..2e01718 Binary files /dev/null and b/build/test/out/test_binomial_coefficient.out differ diff --git a/build/test/out/test_eigenkapital_Rentabilitaeten.out b/build/test/out/test_eigenkapital_Rentabilitaeten.out index c6ade2a..b583cac 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 3453aab..3931a92 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 57e7bf3..c75da7b 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 bd2d7dd..6c136bf 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 7d5f0e3..f93f70e 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 0261f40..a003d5f 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_trapezFlaeche.out b/build/test/out/test_trapezFlaeche.out index 870960c..b0fdae6 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 18e9b1e..9e25726 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_binomial_coefficient.c b/build/test/preprocess/files/test_binomial_coefficient.c new file mode 100644 index 0000000..80a8483 --- /dev/null +++ b/build/test/preprocess/files/test_binomial_coefficient.c @@ -0,0 +1,39 @@ +#include "src/funktion.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_binomial_coefficient_NeedToImplement(void) + +{ + + int a=2; + + int b=3; + + int result=binomial_coefficient(a,b); + + int ergebnis=1; + + printf("Testergebniss %d", ergebnis); + + UnityAssertEqualNumber((UNITY_INT)((result)), (UNITY_INT)((ergebnis)), ( + + ((void *)0) + + ), (UNITY_UINT)(18), UNITY_DISPLAY_STYLE_INT); + +} diff --git a/build/test/preprocess/includes/test_binomial_coefficient.c b/build/test/preprocess/includes/test_binomial_coefficient.c new file mode 100644 index 0000000..4e923ea --- /dev/null +++ b/build/test/preprocess/includes/test_binomial_coefficient.c @@ -0,0 +1,3 @@ +--- +- "/var/lib/gems/3.0.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 311d94d..4e687ac 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.0021576819999609143 +:time: 0.0017804130002332386 diff --git a/build/test/results/test_Anlagenabnutzungsgrad.pass b/build/test/results/test_Anlagenabnutzungsgrad.pass index d15e9cf..40eb639 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.003508665999106597 +:time: 0.00491794099980325 diff --git a/build/test/results/test_Anlagenintensitaet.pass b/build/test/results/test_Anlagenintensitaet.pass index 442331d..c4e6056 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.002917410000009113 +:time: 0.003222309998818673 diff --git a/build/test/results/test_Anlagenproduktivitaet.pass b/build/test/results/test_Anlagenproduktivitaet.pass index 1cc57f2..f38d1ad 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.005943973999819718 +:time: 0.003931907000151114 diff --git a/build/test/results/test_Arbeitsproduktivitaet.pass b/build/test/results/test_Arbeitsproduktivitaet.pass index b82a883..7ef7235 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.0016179200010810746 +:time: 0.0018627720000949921 diff --git a/build/test/results/test_Cashflow_zu_Gesamtkapital.pass b/build/test/results/test_Cashflow_zu_Gesamtkapital.pass index 8a4b1cd..e6f8b18 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.0013433690000965726 +:time: 0.005546435000724159 diff --git a/build/test/results/test_Dynamische_Amortisationszeit.pass b/build/test/results/test_Dynamische_Amortisationszeit.pass index adf4d58..9094197 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.0013859850005246699 +:time: 0.0018890200008172542 diff --git a/build/test/results/test_Effektivverzinsung.pass b/build/test/results/test_Effektivverzinsung.pass index 680460b..603a831 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.0021734720012318576 +:time: 0.0016974339996522758 diff --git a/build/test/results/test_Finanzierungsregeln.pass b/build/test/results/test_Finanzierungsregeln.pass index 8858804..31b65bd 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.0017803640002966858 +:time: 0.0014716960013174685 diff --git a/build/test/results/test_GewinnMaximum.pass b/build/test/results/test_GewinnMaximum.pass index 6c18dc5..d90bd52 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.0022076269997342024 +:time: 0.001646841001274879 diff --git a/build/test/results/test_Kalkulatorische_Zinsen.pass b/build/test/results/test_Kalkulatorische_Zinsen.pass index 4373347..59c3b32 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.006400242999006878 +:time: 0.0018257169995195 diff --git a/build/test/results/test_Kritische_Menge.pass b/build/test/results/test_Kritische_Menge.pass index 6b17366..1f898f2 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.002303446000951226 +:time: 0.002026236999881803 diff --git a/build/test/results/test_Stueckzeitakkort.pass b/build/test/results/test_Stueckzeitakkort.pass index 93ed12b..b905911 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.002429381000183639 +:time: 0.002102997999827494 diff --git a/build/test/results/test_Vadd.pass b/build/test/results/test_Vadd.pass index 80d0772..fdd218c 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.0013770579989795806 +:time: 0.0026261009988957085 diff --git a/build/test/results/test_Vaddx2.pass b/build/test/results/test_Vaddx2.pass index 60907f1..c832663 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.001445219999368419 +:time: 0.005395653999585193 diff --git a/build/test/results/test_Vaddx3.pass b/build/test/results/test_Vaddx3.pass index 13adfd1..8847276 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.002078814000924467 +:time: 0.0015696239988756133 diff --git a/build/test/results/test_Vangle.pass b/build/test/results/test_Vangle.pass index 1b9f644..b69741d 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.0033905760010384256 +:time: 0.0016816280003695283 diff --git a/build/test/results/test_Vlength.pass b/build/test/results/test_Vlength.pass index 3001d25..a3edb21 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.002578505000201403 +:time: 0.001683295000475482 diff --git a/build/test/results/test_Vmiddle.pass b/build/test/results/test_Vmiddle.pass index db7d8ed..9ce6742 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.00277927500064834 +:time: 0.0016756210006860783 diff --git a/build/test/results/test_Vmiddle2.pass b/build/test/results/test_Vmiddle2.pass index 13e4074..a2469a8 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.0034392329998809146 +:time: 0.0015711260002717609 diff --git a/build/test/results/test_Vmiddle3.pass b/build/test/results/test_Vmiddle3.pass index 6d425d4..e77e22d 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.007561193999208626 +:time: 0.0018666260002646595 diff --git a/build/test/results/test_Vmultiplier.pass b/build/test/results/test_Vmultiplier.pass index ca02b68..46d674f 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.002655837999554933 +:time: 0.0018209059999207966 diff --git a/build/test/results/test_Vmultiplier2.pass b/build/test/results/test_Vmultiplier2.pass index f8e9480..124bc18 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.001532724998469348 +:time: 0.0032439990009152098 diff --git a/build/test/results/test_Vmultiplier3.pass b/build/test/results/test_Vmultiplier3.pass index 3755bfa..51ad4c1 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.0017408980002073804 +:time: 0.002459958001054474 diff --git a/build/test/results/test_Vparallel.pass b/build/test/results/test_Vparallel.pass index 4683ca5..7ed5949 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.003320322999570635 +:time: 0.0025641580014053034 diff --git a/build/test/results/test_Vshift.pass b/build/test/results/test_Vshift.pass index 6e7634d..f9b3ce9 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.001449869001589832 +:time: 0.001945666999745299 diff --git a/build/test/results/test_Vskalort.pass b/build/test/results/test_Vskalort.pass index dd95289..75af51b 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.0018154090012103552 +:time: 0.001544736000141711 diff --git a/build/test/results/test_Vsubstract.pass b/build/test/results/test_Vsubstract.pass index 89bdb0b..a50be97 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.0022959180005273083 +:time: 0.002150717999029439 diff --git a/build/test/results/test_Vsubstract2.pass b/build/test/results/test_Vsubstract2.pass index 8525605..a59c189 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.002155036001568078 +:time: 0.0018433610002830392 diff --git a/build/test/results/test_Vsubstract3.pass b/build/test/results/test_Vsubstract3.pass index 52d9b74..3db862f 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.0029436249988066265 +:time: 0.0021236239990685135 diff --git a/build/test/results/test_Zeitlohn.pass b/build/test/results/test_Zeitlohn.pass index b955a88..434ed03 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.0017063979994418332 +:time: 0.001939702000527177 diff --git a/build/test/results/test_angebotserfolg.pass b/build/test/results/test_angebotserfolg.pass index 944f847..5bbc13e 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.0014974500008975156 +:time: 0.0016371870005968958 diff --git a/build/test/results/test_binomial_coefficient.pass b/build/test/results/test_binomial_coefficient.pass new file mode 100644 index 0000000..2a66ae7 --- /dev/null +++ b/build/test/results/test_binomial_coefficient.pass @@ -0,0 +1,20 @@ +--- +:source: + :path: test + :file: test_binomial_coefficient.c +:successes: +- :test: test_binomial_coefficient_NeedToImplement + :line: 11 + :message: '' + :unity_test_time: 0 +:failures: [] +:ignores: [] +:counts: + :total: 1 + :passed: 1 + :failed: 0 + :ignored: 0 +:stdout: +- The binomial coefficient C(2, -1) is 1 +- Testergebniss 1 +:time: 0.002219015999799012 diff --git a/build/test/results/test_eigenkapital_Rentabilitaeten.pass b/build/test/results/test_eigenkapital_Rentabilitaeten.pass index 8608f7d..95393c5 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.0024017040013859514 +:time: 0.00194221800120431 diff --git a/build/test/results/test_erloesfunktion.pass b/build/test/results/test_erloesfunktion.pass index b119817..b56a638 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.0023601699995197123 +:time: 0.001711550999971223 diff --git a/build/test/results/test_gesamtkapital_Rentabilitaeten.pass b/build/test/results/test_gesamtkapital_Rentabilitaeten.pass index 8f2d2a0..b2978d2 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.0015163669995672535 +:time: 0.0017669599983491935 diff --git a/build/test/results/test_grenzGewinn.pass b/build/test/results/test_grenzGewinn.pass index 7c25b7b..b211ed4 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.0013913610000599874 +:time: 0.0018872260006901342 diff --git a/build/test/results/test_marktanteil.pass b/build/test/results/test_marktanteil.pass index a04bfd5..c9c767c 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.0018299700004718034 +:time: 0.0021236690008663572 diff --git a/build/test/results/test_probability_from_tree.pass b/build/test/results/test_probability_from_tree.pass index 468bbaf..523a4b1 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.002275183998790453 +:time: 0.0018104690007021418 diff --git a/build/test/results/test_trapezFlaeche.pass b/build/test/results/test_trapezFlaeche.pass index 20bcd56..6dc7de1 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.0018528749988035997 +:time: 0.001722078000966576 diff --git a/build/test/results/test_vPunkt.pass b/build/test/results/test_vPunkt.pass index c3ff35a..f699e67 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.0023238069989020005 +:time: 0.003141678000247339 diff --git a/build/test/runners/test_binomial_coefficient_runner.c b/build/test/runners/test_binomial_coefficient_runner.c new file mode 100644 index 0000000..bc1aaae --- /dev/null +++ b/build/test/runners/test_binomial_coefficient_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_binomial_coefficient_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_binomial_coefficient.c"); + run_test(test_binomial_coefficient_NeedToImplement, "test_binomial_coefficient_NeedToImplement", 11); + + return UnityEnd(); +} diff --git a/test/test_binomial_coefficient.c b/test/test_binomial_coefficient.c new file mode 100644 index 0000000..e9c3ce7 --- /dev/null +++ b/test/test_binomial_coefficient.c @@ -0,0 +1,21 @@ +#include "unity.h" +#include "funktion.h" +void setUp(void) +{ +} + +void tearDown(void) +{ +} + +void test_binomial_coefficient_NeedToImplement(void) +{ + int a=2; + int b=3; + int result=binomial_coefficient(a,b); + int ergebnis=1; + printf("Testergebniss %d", ergebnis); + TEST_ASSERT_EQUAL_INT(result, ergebnis); +} + +