Browse Source

test_probability_from_tree

main
fdai6887 2 years ago
parent
commit
45391c6527
  1. 39
      build/test/cache/test_probability_from_tree.c
  2. 5
      build/test/dependencies/test_probability_from_tree.d
  3. 4
      build/test/dependencies/test_probability_from_tree_runner.d
  4. BIN
      build/test/out/c/funktion.o
  5. BIN
      build/test/out/c/test_probability_from_tree.o
  6. BIN
      build/test/out/c/test_probability_from_tree_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_eigenkapital_Rentabilitaeten.out
  40. BIN
      build/test/out/test_erloesfunktion.out
  41. BIN
      build/test/out/test_gesamtkapital_Rentabilitaeten.out
  42. BIN
      build/test/out/test_grenzGewinn.out
  43. BIN
      build/test/out/test_marktanteil.out
  44. BIN
      build/test/out/test_probability_from_tree.out
  45. BIN
      build/test/out/test_trapezFlaeche.out
  46. BIN
      build/test/out/test_vPunkt.out
  47. 39
      build/test/preprocess/files/test_probability_from_tree.c
  48. 3
      build/test/preprocess/includes/test_probability_from_tree.c
  49. 2
      build/test/results/test_Akkortrichtsatz.pass
  50. 2
      build/test/results/test_Anlagenabnutzungsgrad.pass
  51. 2
      build/test/results/test_Anlagenintensitaet.pass
  52. 2
      build/test/results/test_Anlagenproduktivitaet.pass
  53. 2
      build/test/results/test_Arbeitsproduktivitaet.pass
  54. 2
      build/test/results/test_Cashflow_zu_Gesamtkapital.pass
  55. 2
      build/test/results/test_Dynamische_Amortisationszeit.pass
  56. 2
      build/test/results/test_Effektivverzinsung.pass
  57. 2
      build/test/results/test_Finanzierungsregeln.pass
  58. 2
      build/test/results/test_GewinnMaximum.pass
  59. 2
      build/test/results/test_Kalkulatorische_Zinsen.pass
  60. 2
      build/test/results/test_Kritische_Menge.pass
  61. 2
      build/test/results/test_Stueckzeitakkort.pass
  62. 2
      build/test/results/test_Vadd.pass
  63. 2
      build/test/results/test_Vaddx2.pass
  64. 2
      build/test/results/test_Vaddx3.pass
  65. 2
      build/test/results/test_Vangle.pass
  66. 2
      build/test/results/test_Vlength.pass
  67. 2
      build/test/results/test_Vmiddle.pass
  68. 2
      build/test/results/test_Vmiddle2.pass
  69. 2
      build/test/results/test_Vmiddle3.pass
  70. 2
      build/test/results/test_Vmultiplier.pass
  71. 2
      build/test/results/test_Vmultiplier2.pass
  72. 2
      build/test/results/test_Vmultiplier3.pass
  73. 2
      build/test/results/test_Vparallel.pass
  74. 2
      build/test/results/test_Vshift.pass
  75. 2
      build/test/results/test_Vskalort.pass
  76. 2
      build/test/results/test_Vsubstract.pass
  77. 2
      build/test/results/test_Vsubstract2.pass
  78. 2
      build/test/results/test_Vsubstract3.pass
  79. 2
      build/test/results/test_Zeitlohn.pass
  80. 2
      build/test/results/test_angebotserfolg.pass
  81. 2
      build/test/results/test_eigenkapital_Rentabilitaeten.pass
  82. 2
      build/test/results/test_erloesfunktion.pass
  83. 2
      build/test/results/test_gesamtkapital_Rentabilitaeten.pass
  84. 2
      build/test/results/test_grenzGewinn.pass
  85. 2
      build/test/results/test_marktanteil.pass
  86. 19
      build/test/results/test_probability_from_tree.pass
  87. 2
      build/test/results/test_trapezFlaeche.pass
  88. 2
      build/test/results/test_vPunkt.pass
  89. 81
      build/test/runners/test_probability_from_tree_runner.c
  90. 21
      test/test_probability_from_tree.c

39
build/test/cache/test_probability_from_tree.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_probability_from_tree_NeedToImplement(void)
{
double x = 1;
double y = 4;
double z = 5;
double exp = probability_from_tree(x,y,z);
double result = 0.05;
UnityAssertFloatsWithin((UNITY_FLOAT)((UNITY_FLOAT)((result)) * (UNITY_FLOAT)(0.00001f)), (UNITY_FLOAT)((UNITY_FLOAT)((result))), (UNITY_FLOAT)((UNITY_FLOAT)((exp))), ((
((void *)0)
)), (UNITY_UINT)((UNITY_UINT)(18)));
}

5
build/test/dependencies/test_probability_from_tree.d

@ -0,0 +1,5 @@
build/test/out/c/test_probability_from_tree.o: \
test/test_probability_from_tree.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_probability_from_tree_runner.d

@ -0,0 +1,4 @@
build/test/out/c/test_probability_from_tree_runner.o: \
build/test/runners/test_probability_from_tree_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_probability_from_tree.o

BIN
build/test/out/c/test_probability_from_tree_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_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_probability_from_tree.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_probability_from_tree_NeedToImplement(void)
{
double x = 1;
double y = 4;
double z = 5;
double exp = probability_from_tree(x,y,z);
double result = 0.05;
UnityAssertFloatsWithin((UNITY_FLOAT)((UNITY_FLOAT)((result)) * (UNITY_FLOAT)(0.00001f)), (UNITY_FLOAT)((UNITY_FLOAT)((result))), (UNITY_FLOAT)((UNITY_FLOAT)((exp))), ((
((void *)0)
)), (UNITY_UINT)((UNITY_UINT)(18)));
}

3
build/test/preprocess/includes/test_probability_from_tree.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.001220079000631813
:time: 0.007866255999033456

2
build/test/results/test_Anlagenabnutzungsgrad.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 60.000000
:time: 0.002810395999404136
:time: 0.004099502999451943

2
build/test/results/test_Anlagenintensitaet.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 4878.048780
:time: 0.005146170000443817
:time: 0.002544674000091618

2
build/test/results/test_Anlagenproduktivitaet.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 18.203304
:time: 0.006841850001364946
:time: 0.0017637499986449257

2
build/test/results/test_Arbeitsproduktivitaet.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 60.000000
:time: 0.0055682720012555365
:time: 0.0033360410016030073

2
build/test/results/test_Cashflow_zu_Gesamtkapital.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 0.158038
:time: 0.00463684500027739
:time: 0.00272540199875948

2
build/test/results/test_Dynamische_Amortisationszeit.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 189.421906
:time: 0.003217641000446747
:time: 0.0017185569995490368

2
build/test/results/test_Effektivverzinsung.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 16.034390
:time: 0.00326192500142497
:time: 0.0016871799998625647

2
build/test/results/test_Finanzierungsregeln.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 0.051041
:time: 0.0015489529996557394
:time: 0.002001824999751989

2
build/test/results/test_GewinnMaximum.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 251.000000
:time: 0.0014673379992018454
:time: 0.001410099999702652

2
build/test/results/test_Kalkulatorische_Zinsen.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 1.440000
:time: 0.0013913610000599874
:time: 0.003338993999932427

2
build/test/results/test_Kritische_Menge.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss -12.096026
:time: 0.0021195179997448577
:time: 0.0018501929989724886

2
build/test/results/test_Stueckzeitakkort.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- '96600.000000'
:time: 0.0068494769984681625
:time: 0.0015410480009450112

2
build/test/results/test_Vadd.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.0032821090007928433
:time: 0.0018041010007436853

2
build/test/results/test_Vaddx2.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.002167870999983279
:time: 0.002057634999800939

2
build/test/results/test_Vaddx3.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.0025919859999703476
:time: 0.0021860500000911998

2
build/test/results/test_Vangle.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.0023873529989941744
:time: 0.0037403749993245583

2
build/test/results/test_Vlength.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.0019459030008874834
:time: 0.0016802390000520973

2
build/test/results/test_Vmiddle.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.009410880998984794
:time: 0.004738868999993429

2
build/test/results/test_Vmiddle2.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.002128293999703601
:time: 0.004648265001378604

2
build/test/results/test_Vmiddle3.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.00201268499949947
:time: 0.0018271660010213964

2
build/test/results/test_Vmultiplier.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.0017390409993822686
:time: 0.0018927809996966971

2
build/test/results/test_Vmultiplier2.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.0017444910008634906
:time: 0.001803843999368837

2
build/test/results/test_Vmultiplier3.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.00751055799992173
:time: 0.0012804279995179968

2
build/test/results/test_Vparallel.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.004626278001524042
:time: 0.0024604820009699324

2
build/test/results/test_Vshift.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.0021990349996485747
:time: 0.0018329430004087044

2
build/test/results/test_Vskalort.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.0019299809991935035
:time: 0.002142957999240025

2
build/test/results/test_Vsubstract.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.005269362000035471
:time: 0.0015674200003559235

2
build/test/results/test_Vsubstract2.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.0020222269995429087
:time: 0.0016028030004235916

2
build/test/results/test_Vsubstract3.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.0016669340002408717
:time: 0.002439313000650145

2
build/test/results/test_Zeitlohn.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 3450.000000
:time: 0.004036337000798085
:time: 0.0021390590009104926

2
build/test/results/test_angebotserfolg.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 225.000000
:time: 0.0017897920006362256
:time: 0.002358757999900263

2
build/test/results/test_eigenkapital_Rentabilitaeten.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 62.500000
:time: 0.0018482769992260728
:time: 0.001762895000865683

2
build/test/results/test_erloesfunktion.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 4000.000000
:time: 0.0034350049991189735
:time: 0.0013848620001226664

2
build/test/results/test_gesamtkapital_Rentabilitaeten.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 27.136929
:time: 0.0032572059990343405
:time: 0.0018161459993280005

2
build/test/results/test_grenzGewinn.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 1141.000000
:time: 0.0013038270008109976
:time: 0.001778494999598479

2
build/test/results/test_marktanteil.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 21.739130
:time: 0.005212906000451767
:time: 0.0032300359998771455

19
build/test/results/test_probability_from_tree.pass

@ -0,0 +1,19 @@
---
:source:
:path: test
:file: test_probability_from_tree.c
:successes:
- :test: test_probability_from_tree_NeedToImplement
:line: 11
:message: ''
:unity_test_time: 0
:failures: []
:ignores: []
:counts:
:total: 1
:passed: 1
:failed: 0
:ignored: 0
:stdout:
- 'The probability is: 0.050000'
:time: 0.001313610999204684

2
build/test/results/test_trapezFlaeche.pass

@ -17,4 +17,4 @@
:stdout:
- 'Flaeche vom Trapez beträgt: 21.000000'
- Testergebniss 21.000000
:time: 0.0028995390002819477
:time: 0.002092060998620582

2
build/test/results/test_vPunkt.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.00648136600102589
:time: 0.002123493999533821

81
build/test/runners/test_probability_from_tree_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_probability_from_tree_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_probability_from_tree.c");
run_test(test_probability_from_tree_NeedToImplement, "test_probability_from_tree_NeedToImplement", 11);
return UnityEnd();
}

21
test/test_probability_from_tree.c

@ -0,0 +1,21 @@
#include "unity.h"
#include "funktion.h"
void setUp(void)
{
}
void tearDown(void)
{
}
void test_probability_from_tree_NeedToImplement(void)
{
double x = 1;
double y = 4;
double z = 5;
double exp = probability_from_tree(x,y,z);
double result = 0.05;
TEST_ASSERT_EQUAL_FLOAT(result,exp);
}
Loading…
Cancel
Save