Browse Source

test_Vangle

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

47
build/test/cache/test_Vangle.c

@ -0,0 +1,47 @@
#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_Vangle_NeedToImplement(void)
{
double x1 = 2;
double x2 = 2;
double x3 = 4;
double z1 = 2;
double z2 = 2;
double z3 = 4;
double exp = Vangle(x1,x2,x3,z1,z2,z3);
double result = 11;
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)(22)));
}

4
build/test/dependencies/test_Vangle.d

@ -0,0 +1,4 @@
build/test/out/c/test_Vangle.o: test/test_Vangle.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_Vangle_runner.d

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

BIN
build/test/out/c/test_Vangle_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_trapezFlaeche.out

47
build/test/preprocess/files/test_Vangle.c

@ -0,0 +1,47 @@
#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_Vangle_NeedToImplement(void)
{
double x1 = 2;
double x2 = 2;
double x3 = 4;
double z1 = 2;
double z2 = 2;
double z3 = 4;
double exp = Vangle(x1,x2,x3,z1,z2,z3);
double result = 11;
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)(22)));
}

3
build/test/preprocess/includes/test_Vangle.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.0021953410005153273
:time: 0.003636677000031341

2
build/test/results/test_Anlagenabnutzungsgrad.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 60.000000
:time: 0.0024351000001843204
:time: 0.003507821999846783

2
build/test/results/test_Anlagenintensitaet.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 4878.048780
:time: 0.0018606740004543099
:time: 0.002491379999810306

2
build/test/results/test_Anlagenproduktivitaet.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 18.203304
:time: 0.0016116229999170173
:time: 0.0020424940003067604

2
build/test/results/test_Arbeitsproduktivitaet.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 60.000000
:time: 0.0019354830001248047
:time: 0.0029920909992142697

2
build/test/results/test_Cashflow_zu_Gesamtkapital.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 0.158038
:time: 0.003553020999788714
:time: 0.0014707629998156335

2
build/test/results/test_Dynamische_Amortisationszeit.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 189.421906
:time: 0.0016166649993465398
:time: 0.0021627099995384924

2
build/test/results/test_Effektivverzinsung.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 16.034390
:time: 0.0017326669994872645
:time: 0.0024297410000144737

2
build/test/results/test_Finanzierungsregeln.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 0.051041
:time: 0.004237866000039503
:time: 0.00305657999979303

2
build/test/results/test_GewinnMaximum.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 251.000000
:time: 0.0013034290004725335
:time: 0.0037081790005686344

2
build/test/results/test_Kalkulatorische_Zinsen.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 1.440000
:time: 0.0029109510005582706
:time: 0.0017208929994012578

2
build/test/results/test_Kritische_Menge.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss -12.096026
:time: 0.0017560449996381067
:time: 0.003995162000137498

2
build/test/results/test_Stueckzeitakkort.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- '96600.000000'
:time: 0.001972701999875426
:time: 0.001518885999757913

2
build/test/results/test_Vadd.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.0028213429995957995
:time: 0.0016438989996458986

2
build/test/results/test_Vaddx2.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.005015943999751471
:time: 0.0020302789998822846

2
build/test/results/test_Vaddx3.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.0018979090000357246
:time: 0.0016461750001326436

20
build/test/results/test_Vangle.pass

@ -0,0 +1,20 @@
---
:source:
:path: test
:file: test_Vangle.c
:successes:
- :test: test_Vangle_NeedToImplement
:line: 12
:message: ''
:unity_test_time: 0
:failures: []
:ignores: []
:counts:
:total: 1
:passed: 1
:failed: 0
:ignored: 0
:stdout:
- 'Der Winkel betraegt: nan'
- ''
:time: 0.005512795999493392

2
build/test/results/test_Vlength.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.004810903999896254
:time: 0.0017696009999781381

2
build/test/results/test_Vmiddle.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.00447749799968733
:time: 0.0017347259999951348

2
build/test/results/test_Vmiddle2.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.0018228869994345587
:time: 0.0016793879995020689

2
build/test/results/test_Vmiddle3.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.0036964020000596065
:time: 0.0015692110000600223

2
build/test/results/test_Vmultiplier.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.002029373999903328
:time: 0.0017407859995728359

2
build/test/results/test_Vmultiplier2.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.002149492000171449
:time: 0.002005395000196586

2
build/test/results/test_Vmultiplier3.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.002835910999237967
:time: 0.00319874799970421

2
build/test/results/test_Vparallel.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.004778819999955886
:time: 0.0022599650001211558

2
build/test/results/test_Vshift.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.007009155000559986
:time: 0.0031051680007294635

2
build/test/results/test_Vskalort.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.005192976999751409
:time: 0.006159935000141559

2
build/test/results/test_Vsubstract.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.004478492000089318
:time: 0.0069610629998351214

2
build/test/results/test_Vsubstract2.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.0051441159994283225
:time: 0.0025703319997774088

2
build/test/results/test_Vsubstract3.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.0018999519998033065
:time: 0.001652977999583527

2
build/test/results/test_Zeitlohn.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 3450.000000
:time: 0.00453161200039176
:time: 0.002210190000369039

2
build/test/results/test_angebotserfolg.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 225.000000
:time: 0.0019300260000818525
:time: 0.0017859230001704418

2
build/test/results/test_eigenkapital_Rentabilitaeten.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 62.500000
:time: 0.006333573000119941
:time: 0.002008553999985452

2
build/test/results/test_erloesfunktion.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 4000.000000
:time: 0.0014883139992889483
:time: 0.0019638029998532147

2
build/test/results/test_gesamtkapital_Rentabilitaeten.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 27.136929
:time: 0.005205324000598921
:time: 0.0020353720001367037

2
build/test/results/test_grenzGewinn.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 1141.000000
:time: 0.0024794129994916148
:time: 0.0026516950001678197

2
build/test/results/test_marktanteil.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 21.739130
:time: 0.0017361050004183198
:time: 0.001674809999713034

2
build/test/results/test_trapezFlaeche.pass

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

81
build/test/runners/test_Vangle_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_Vangle_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_Vangle.c");
run_test(test_Vangle_NeedToImplement, "test_Vangle_NeedToImplement", 12);
return UnityEnd();
}

23
test/test_Vangle.c

@ -0,0 +1,23 @@
#include "unity.h"
#include "funktion.h"
void setUp(void)
{
}
void tearDown(void)
{
}
void test_Vangle_NeedToImplement(void)
{
double x1 = 2;
double x2 = 2;
double x3 = 4;
double z1 = 2;
double z2 = 2;
double z3 = 4;
double exp = Vangle(x1,x2,x3,z1,z2,z3);
double result = 11;
TEST_ASSERT_EQUAL_FLOAT(result,exp);
}
Loading…
Cancel
Save