Browse Source

test_binomial_coefficient

main
fdai6887 2 years ago
parent
commit
232ca2b405
  1. 39
      build/test/cache/test_binomial_coefficient.c
  2. 5
      build/test/dependencies/test_binomial_coefficient.d
  3. 4
      build/test/dependencies/test_binomial_coefficient_runner.d
  4. BIN
      build/test/out/c/funktion.o
  5. BIN
      build/test/out/c/test_binomial_coefficient.o
  6. BIN
      build/test/out/c/test_binomial_coefficient_runner.o
  7. BIN
      build/test/out/test_Akkortrichtsatz.out
  8. BIN
      build/test/out/test_Anlagenabnutzungsgrad.out
  9. BIN
      build/test/out/test_Anlagenintensitaet.out
  10. BIN
      build/test/out/test_Anlagenproduktivitaet.out
  11. BIN
      build/test/out/test_Arbeitsproduktivitaet.out
  12. BIN
      build/test/out/test_Cashflow_zu_Gesamtkapital.out
  13. BIN
      build/test/out/test_Dynamische_Amortisationszeit.out
  14. BIN
      build/test/out/test_Effektivverzinsung.out
  15. BIN
      build/test/out/test_Finanzierungsregeln.out
  16. BIN
      build/test/out/test_GewinnMaximum.out
  17. BIN
      build/test/out/test_Kalkulatorische_Zinsen.out
  18. BIN
      build/test/out/test_Kritische_Menge.out
  19. BIN
      build/test/out/test_Stueckzeitakkort.out
  20. BIN
      build/test/out/test_Vadd.out
  21. BIN
      build/test/out/test_Vaddx2.out
  22. BIN
      build/test/out/test_Vaddx3.out
  23. BIN
      build/test/out/test_Vangle.out
  24. BIN
      build/test/out/test_Vlength.out
  25. BIN
      build/test/out/test_Vmiddle.out
  26. BIN
      build/test/out/test_Vmiddle2.out
  27. BIN
      build/test/out/test_Vmiddle3.out
  28. BIN
      build/test/out/test_Vmultiplier.out
  29. BIN
      build/test/out/test_Vmultiplier2.out
  30. BIN
      build/test/out/test_Vmultiplier3.out
  31. BIN
      build/test/out/test_Vparallel.out
  32. BIN
      build/test/out/test_Vshift.out
  33. BIN
      build/test/out/test_Vskalort.out
  34. BIN
      build/test/out/test_Vsubstract.out
  35. BIN
      build/test/out/test_Vsubstract2.out
  36. BIN
      build/test/out/test_Vsubstract3.out
  37. BIN
      build/test/out/test_Zeitlohn.out
  38. BIN
      build/test/out/test_angebotserfolg.out
  39. BIN
      build/test/out/test_binomial_coefficient.out
  40. BIN
      build/test/out/test_eigenkapital_Rentabilitaeten.out
  41. BIN
      build/test/out/test_erloesfunktion.out
  42. BIN
      build/test/out/test_gesamtkapital_Rentabilitaeten.out
  43. BIN
      build/test/out/test_grenzGewinn.out
  44. BIN
      build/test/out/test_marktanteil.out
  45. BIN
      build/test/out/test_probability_from_tree.out
  46. BIN
      build/test/out/test_trapezFlaeche.out
  47. BIN
      build/test/out/test_vPunkt.out
  48. 39
      build/test/preprocess/files/test_binomial_coefficient.c
  49. 3
      build/test/preprocess/includes/test_binomial_coefficient.c
  50. 2
      build/test/results/test_Akkortrichtsatz.pass
  51. 2
      build/test/results/test_Anlagenabnutzungsgrad.pass
  52. 2
      build/test/results/test_Anlagenintensitaet.pass
  53. 2
      build/test/results/test_Anlagenproduktivitaet.pass
  54. 2
      build/test/results/test_Arbeitsproduktivitaet.pass
  55. 2
      build/test/results/test_Cashflow_zu_Gesamtkapital.pass
  56. 2
      build/test/results/test_Dynamische_Amortisationszeit.pass
  57. 2
      build/test/results/test_Effektivverzinsung.pass
  58. 2
      build/test/results/test_Finanzierungsregeln.pass
  59. 2
      build/test/results/test_GewinnMaximum.pass
  60. 2
      build/test/results/test_Kalkulatorische_Zinsen.pass
  61. 2
      build/test/results/test_Kritische_Menge.pass
  62. 2
      build/test/results/test_Stueckzeitakkort.pass
  63. 2
      build/test/results/test_Vadd.pass
  64. 2
      build/test/results/test_Vaddx2.pass
  65. 2
      build/test/results/test_Vaddx3.pass
  66. 2
      build/test/results/test_Vangle.pass
  67. 2
      build/test/results/test_Vlength.pass
  68. 2
      build/test/results/test_Vmiddle.pass
  69. 2
      build/test/results/test_Vmiddle2.pass
  70. 2
      build/test/results/test_Vmiddle3.pass
  71. 2
      build/test/results/test_Vmultiplier.pass
  72. 2
      build/test/results/test_Vmultiplier2.pass
  73. 2
      build/test/results/test_Vmultiplier3.pass
  74. 2
      build/test/results/test_Vparallel.pass
  75. 2
      build/test/results/test_Vshift.pass
  76. 2
      build/test/results/test_Vskalort.pass
  77. 2
      build/test/results/test_Vsubstract.pass
  78. 2
      build/test/results/test_Vsubstract2.pass
  79. 2
      build/test/results/test_Vsubstract3.pass
  80. 2
      build/test/results/test_Zeitlohn.pass
  81. 2
      build/test/results/test_angebotserfolg.pass
  82. 20
      build/test/results/test_binomial_coefficient.pass
  83. 2
      build/test/results/test_eigenkapital_Rentabilitaeten.pass
  84. 2
      build/test/results/test_erloesfunktion.pass
  85. 2
      build/test/results/test_gesamtkapital_Rentabilitaeten.pass
  86. 2
      build/test/results/test_grenzGewinn.pass
  87. 2
      build/test/results/test_marktanteil.pass
  88. 2
      build/test/results/test_probability_from_tree.pass
  89. 2
      build/test/results/test_trapezFlaeche.pass
  90. 2
      build/test/results/test_vPunkt.pass
  91. 81
      build/test/runners/test_binomial_coefficient_runner.c
  92. 21
      test/test_binomial_coefficient.c

39
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);
}

5
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

4
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

BIN
build/test/out/c/funktion.o

BIN
build/test/out/c/test_binomial_coefficient.o

BIN
build/test/out/c/test_binomial_coefficient_runner.o

BIN
build/test/out/test_Akkortrichtsatz.out

BIN
build/test/out/test_Anlagenabnutzungsgrad.out

BIN
build/test/out/test_Anlagenintensitaet.out

BIN
build/test/out/test_Anlagenproduktivitaet.out

BIN
build/test/out/test_Arbeitsproduktivitaet.out

BIN
build/test/out/test_Cashflow_zu_Gesamtkapital.out

BIN
build/test/out/test_Dynamische_Amortisationszeit.out

BIN
build/test/out/test_Effektivverzinsung.out

BIN
build/test/out/test_Finanzierungsregeln.out

BIN
build/test/out/test_GewinnMaximum.out

BIN
build/test/out/test_Kalkulatorische_Zinsen.out

BIN
build/test/out/test_Kritische_Menge.out

BIN
build/test/out/test_Stueckzeitakkort.out

BIN
build/test/out/test_Vadd.out

BIN
build/test/out/test_Vaddx2.out

BIN
build/test/out/test_Vaddx3.out

BIN
build/test/out/test_Vangle.out

BIN
build/test/out/test_Vlength.out

BIN
build/test/out/test_Vmiddle.out

BIN
build/test/out/test_Vmiddle2.out

BIN
build/test/out/test_Vmiddle3.out

BIN
build/test/out/test_Vmultiplier.out

BIN
build/test/out/test_Vmultiplier2.out

BIN
build/test/out/test_Vmultiplier3.out

BIN
build/test/out/test_Vparallel.out

BIN
build/test/out/test_Vshift.out

BIN
build/test/out/test_Vskalort.out

BIN
build/test/out/test_Vsubstract.out

BIN
build/test/out/test_Vsubstract2.out

BIN
build/test/out/test_Vsubstract3.out

BIN
build/test/out/test_Zeitlohn.out

BIN
build/test/out/test_angebotserfolg.out

BIN
build/test/out/test_binomial_coefficient.out

BIN
build/test/out/test_eigenkapital_Rentabilitaeten.out

BIN
build/test/out/test_erloesfunktion.out

BIN
build/test/out/test_gesamtkapital_Rentabilitaeten.out

BIN
build/test/out/test_grenzGewinn.out

BIN
build/test/out/test_marktanteil.out

BIN
build/test/out/test_probability_from_tree.out

BIN
build/test/out/test_trapezFlaeche.out

BIN
build/test/out/test_vPunkt.out

39
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);
}

3
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

2
build/test/results/test_Akkortrichtsatz.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 552.000000
:time: 0.0021576819999609143
:time: 0.0017804130002332386

2
build/test/results/test_Anlagenabnutzungsgrad.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 60.000000
:time: 0.003508665999106597
:time: 0.00491794099980325

2
build/test/results/test_Anlagenintensitaet.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 4878.048780
:time: 0.002917410000009113
:time: 0.003222309998818673

2
build/test/results/test_Anlagenproduktivitaet.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 18.203304
:time: 0.005943973999819718
:time: 0.003931907000151114

2
build/test/results/test_Arbeitsproduktivitaet.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 60.000000
:time: 0.0016179200010810746
:time: 0.0018627720000949921

2
build/test/results/test_Cashflow_zu_Gesamtkapital.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 0.158038
:time: 0.0013433690000965726
:time: 0.005546435000724159

2
build/test/results/test_Dynamische_Amortisationszeit.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 189.421906
:time: 0.0013859850005246699
:time: 0.0018890200008172542

2
build/test/results/test_Effektivverzinsung.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 16.034390
:time: 0.0021734720012318576
:time: 0.0016974339996522758

2
build/test/results/test_Finanzierungsregeln.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 0.051041
:time: 0.0017803640002966858
:time: 0.0014716960013174685

2
build/test/results/test_GewinnMaximum.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 251.000000
:time: 0.0022076269997342024
:time: 0.001646841001274879

2
build/test/results/test_Kalkulatorische_Zinsen.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 1.440000
:time: 0.006400242999006878
:time: 0.0018257169995195

2
build/test/results/test_Kritische_Menge.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss -12.096026
:time: 0.002303446000951226
:time: 0.002026236999881803

2
build/test/results/test_Stueckzeitakkort.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- '96600.000000'
:time: 0.002429381000183639
:time: 0.002102997999827494

2
build/test/results/test_Vadd.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.0013770579989795806
:time: 0.0026261009988957085

2
build/test/results/test_Vaddx2.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.001445219999368419
:time: 0.005395653999585193

2
build/test/results/test_Vaddx3.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.002078814000924467
:time: 0.0015696239988756133

2
build/test/results/test_Vangle.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.0033905760010384256
:time: 0.0016816280003695283

2
build/test/results/test_Vlength.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.002578505000201403
:time: 0.001683295000475482

2
build/test/results/test_Vmiddle.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.00277927500064834
:time: 0.0016756210006860783

2
build/test/results/test_Vmiddle2.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.0034392329998809146
:time: 0.0015711260002717609

2
build/test/results/test_Vmiddle3.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.007561193999208626
:time: 0.0018666260002646595

2
build/test/results/test_Vmultiplier.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.002655837999554933
:time: 0.0018209059999207966

2
build/test/results/test_Vmultiplier2.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.001532724998469348
:time: 0.0032439990009152098

2
build/test/results/test_Vmultiplier3.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.0017408980002073804
:time: 0.002459958001054474

2
build/test/results/test_Vparallel.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.003320322999570635
:time: 0.0025641580014053034

2
build/test/results/test_Vshift.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.001449869001589832
:time: 0.001945666999745299

2
build/test/results/test_Vskalort.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.0018154090012103552
:time: 0.001544736000141711

2
build/test/results/test_Vsubstract.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.0022959180005273083
:time: 0.002150717999029439

2
build/test/results/test_Vsubstract2.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.002155036001568078
:time: 0.0018433610002830392

2
build/test/results/test_Vsubstract3.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.0029436249988066265
:time: 0.0021236239990685135

2
build/test/results/test_Zeitlohn.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 3450.000000
:time: 0.0017063979994418332
:time: 0.001939702000527177

2
build/test/results/test_angebotserfolg.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 225.000000
:time: 0.0014974500008975156
:time: 0.0016371870005968958

20
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

2
build/test/results/test_eigenkapital_Rentabilitaeten.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 62.500000
:time: 0.0024017040013859514
:time: 0.00194221800120431

2
build/test/results/test_erloesfunktion.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 4000.000000
:time: 0.0023601699995197123
:time: 0.001711550999971223

2
build/test/results/test_gesamtkapital_Rentabilitaeten.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 27.136929
:time: 0.0015163669995672535
:time: 0.0017669599983491935

2
build/test/results/test_grenzGewinn.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 1141.000000
:time: 0.0013913610000599874
:time: 0.0018872260006901342

2
build/test/results/test_marktanteil.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 21.739130
:time: 0.0018299700004718034
:time: 0.0021236690008663572

2
build/test/results/test_probability_from_tree.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.002275183998790453
:time: 0.0018104690007021418

2
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

2
build/test/results/test_vPunkt.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.0023238069989020005
:time: 0.003141678000247339

81
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();
}

21
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);
}
Loading…
Cancel
Save