Browse Source

test_Vadd

main
fdai6887 2 years ago
parent
commit
82d89dba60
  1. 39
      build/test/cache/test_Vadd.c
  2. 4
      build/test/dependencies/test_Vadd.d
  3. 4
      build/test/dependencies/test_Vadd_runner.d
  4. BIN
      build/test/out/c/funktion.o
  5. BIN
      build/test/out/c/test_Vadd.o
  6. BIN
      build/test/out/c/test_Vadd_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_Vlength.out
  22. BIN
      build/test/out/test_Vshift.out
  23. BIN
      build/test/out/test_Zeitlohn.out
  24. BIN
      build/test/out/test_angebotserfolg.out
  25. BIN
      build/test/out/test_eigenkapital_Rentabilitaeten.out
  26. BIN
      build/test/out/test_erloesfunktion.out
  27. BIN
      build/test/out/test_gesamtkapital_Rentabilitaeten.out
  28. BIN
      build/test/out/test_grenzGewinn.out
  29. BIN
      build/test/out/test_marktanteil.out
  30. BIN
      build/test/out/test_trapezFlaeche.out
  31. 39
      build/test/preprocess/files/test_Vadd.c
  32. 3
      build/test/preprocess/includes/test_Vadd.c
  33. 2
      build/test/results/test_Akkortrichtsatz.pass
  34. 2
      build/test/results/test_Anlagenabnutzungsgrad.pass
  35. 2
      build/test/results/test_Anlagenintensitaet.pass
  36. 2
      build/test/results/test_Anlagenproduktivitaet.pass
  37. 2
      build/test/results/test_Arbeitsproduktivitaet.pass
  38. 2
      build/test/results/test_Cashflow_zu_Gesamtkapital.pass
  39. 2
      build/test/results/test_Dynamische_Amortisationszeit.pass
  40. 2
      build/test/results/test_Effektivverzinsung.pass
  41. 2
      build/test/results/test_Finanzierungsregeln.pass
  42. 2
      build/test/results/test_GewinnMaximum.pass
  43. 2
      build/test/results/test_Kalkulatorische_Zinsen.pass
  44. 2
      build/test/results/test_Kritische_Menge.pass
  45. 2
      build/test/results/test_Stueckzeitakkort.pass
  46. 19
      build/test/results/test_Vadd.pass
  47. 2
      build/test/results/test_Vlength.pass
  48. 2
      build/test/results/test_Vshift.pass
  49. 2
      build/test/results/test_Zeitlohn.pass
  50. 2
      build/test/results/test_angebotserfolg.pass
  51. 2
      build/test/results/test_eigenkapital_Rentabilitaeten.pass
  52. 2
      build/test/results/test_erloesfunktion.pass
  53. 2
      build/test/results/test_gesamtkapital_Rentabilitaeten.pass
  54. 2
      build/test/results/test_grenzGewinn.pass
  55. 2
      build/test/results/test_marktanteil.pass
  56. 2
      build/test/results/test_trapezFlaeche.pass
  57. 81
      build/test/runners/test_Vadd_runner.c
  58. 19
      test/test_Vadd.c

39
build/test/cache/test_Vadd.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_Vadd_NeedToImplement(void)
{
double x1 = 1;
double z1 = 2;
double exp = Vadd(x1,z1);
double result = 3;
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)));
}

4
build/test/dependencies/test_Vadd.d

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

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

BIN
build/test/out/c/test_Vadd_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_Vlength.out

BIN
build/test/out/test_Vshift.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

39
build/test/preprocess/files/test_Vadd.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_Vadd_NeedToImplement(void)
{
double x1 = 1;
double z1 = 2;
double exp = Vadd(x1,z1);
double result = 3;
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_Vadd.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.0011608709999109124
:time: 0.0013904579998325062

2
build/test/results/test_Anlagenabnutzungsgrad.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 60.000000
:time: 0.001552016999994521
:time: 0.0017952549999336043

2
build/test/results/test_Anlagenintensitaet.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 4878.048780
:time: 0.0021443269999963377
:time: 0.0019534289999683097

2
build/test/results/test_Anlagenproduktivitaet.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 18.203304
:time: 0.0015832679998766253
:time: 0.007422854999958872

2
build/test/results/test_Arbeitsproduktivitaet.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 60.000000
:time: 0.0028667300000506657
:time: 0.002285532000087187

2
build/test/results/test_Cashflow_zu_Gesamtkapital.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 0.158038
:time: 0.0019372640001620312
:time: 0.004868327000167483

2
build/test/results/test_Dynamische_Amortisationszeit.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 189.421906
:time: 0.0066594200000054116
:time: 0.0016146650000337104

2
build/test/results/test_Effektivverzinsung.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 16.034390
:time: 0.0016625740001927625
:time: 0.0016162450001502293

2
build/test/results/test_Finanzierungsregeln.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 0.051041
:time: 0.0020899690000533155
:time: 0.0018228599999474682

2
build/test/results/test_GewinnMaximum.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 251.000000
:time: 0.003420550000100775
:time: 0.0032326519999514858

2
build/test/results/test_Kalkulatorische_Zinsen.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 1.440000
:time: 0.0018246979998366442
:time: 0.002472962000183543

2
build/test/results/test_Kritische_Menge.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss -12.096026
:time: 0.004629809999869394
:time: 0.0019747849999021128

2
build/test/results/test_Stueckzeitakkort.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- '96600.000000'
:time: 0.004610520999904111
:time: 0.0018317630001547514

19
build/test/results/test_Vadd.pass

@ -0,0 +1,19 @@
---
:source:
:path: test
:file: test_Vadd.c
:successes:
- :test: test_Vadd_NeedToImplement
:line: 12
:message: ''
:unity_test_time: 0
:failures: []
:ignores: []
:counts:
:total: 1
:passed: 1
:failed: 0
:ignored: 0
:stdout:
- "(3.000000: "
:time: 0.001914025000132824

2
build/test/results/test_Vlength.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.004921374999867112
:time: 0.001506154000026072

2
build/test/results/test_Vshift.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.005894744999977775
:time: 0.002754792000132511

2
build/test/results/test_Zeitlohn.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 3450.000000
:time: 0.0012868490000528254
:time: 0.0036282679998294043

2
build/test/results/test_angebotserfolg.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 225.000000
:time: 0.0017269459999624814
:time: 0.0019566180001220346

2
build/test/results/test_eigenkapital_Rentabilitaeten.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 62.500000
:time: 0.004042334000132541
:time: 0.0015976029999364982

2
build/test/results/test_erloesfunktion.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 4000.000000
:time: 0.006942122000054951
:time: 0.001789418000043952

2
build/test/results/test_gesamtkapital_Rentabilitaeten.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 27.136929
:time: 0.002042038999888973
:time: 0.005690295000022161

2
build/test/results/test_grenzGewinn.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 1141.000000
:time: 0.0019287170000552578
:time: 0.0021930570001131855

2
build/test/results/test_marktanteil.pass

@ -16,4 +16,4 @@
:ignored: 0
:stdout:
- Testergebniss 21.739130
:time: 0.0042998090000310185
:time: 0.002229749999969499

2
build/test/results/test_trapezFlaeche.pass

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

81
build/test/runners/test_Vadd_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_Vadd_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_Vadd.c");
run_test(test_Vadd_NeedToImplement, "test_Vadd_NeedToImplement", 12);
return UnityEnd();
}

19
test/test_Vadd.c

@ -0,0 +1,19 @@
#include "unity.h"
#include "funktion.h"
void setUp(void)
{
}
void tearDown(void)
{
}
void test_Vadd_NeedToImplement(void)
{
double x1 = 1;
double z1 = 2;
double exp = Vadd(x1,z1);
double result = 3;
TEST_ASSERT_EQUAL_FLOAT(result,exp);
}
Loading…
Cancel
Save