Browse Source

menue gefixt und build ordner entfernt

remotes/origin/tictactoedev
fdai7754 11 months ago
parent
commit
2d48233419
  1. 14
      build/test/cache/defines_dependency.yml
  2. 163
      build/test/cache/test_temperatur.c
  3. 1
      build/test/dependencies/temperatur.d
  4. 4
      build/test/dependencies/test_temperatur.d
  5. 4
      build/test/dependencies/test_temperatur_runner.d
  6. BIN
      build/test/out/c/MatheSpiele.o
  7. BIN
      build/test/out/c/SchereSteinPapier.o
  8. BIN
      build/test/out/c/WortSpiel.o
  9. BIN
      build/test/out/c/ageinseconds.o
  10. BIN
      build/test/out/c/bmi.o
  11. BIN
      build/test/out/c/cmock.o
  12. BIN
      build/test/out/c/minirechner.o
  13. BIN
      build/test/out/c/temperatur.o
  14. BIN
      build/test/out/c/test_MatheSpiele.o
  15. BIN
      build/test/out/c/test_MatheSpiele_runner.o
  16. BIN
      build/test/out/c/test_SchereSteinPapier.o
  17. BIN
      build/test/out/c/test_SchereSteinPapier_runner.o
  18. BIN
      build/test/out/c/test_WortSpiel.o
  19. BIN
      build/test/out/c/test_WortSpiel_runner.o
  20. BIN
      build/test/out/c/test_ageinseconds.o
  21. BIN
      build/test/out/c/test_ageinseconds_runner.o
  22. BIN
      build/test/out/c/test_bmi.o
  23. BIN
      build/test/out/c/test_bmi_runner.o
  24. BIN
      build/test/out/c/test_minirechner.o
  25. BIN
      build/test/out/c/test_minirechner_runner.o
  26. BIN
      build/test/out/c/test_temperatur.o
  27. BIN
      build/test/out/c/test_temperatur_runner.o
  28. BIN
      build/test/out/c/test_zahlenraten.o
  29. BIN
      build/test/out/c/test_zahlenraten_runner.o
  30. BIN
      build/test/out/c/unity.o
  31. BIN
      build/test/out/c/zahlenraten.o
  32. BIN
      build/test/out/test_MatheSpiele.out
  33. BIN
      build/test/out/test_SchereSteinPapier.out
  34. BIN
      build/test/out/test_WortSpiel.out
  35. BIN
      build/test/out/test_ageinseconds.out
  36. BIN
      build/test/out/test_bmi.out
  37. BIN
      build/test/out/test_minirechner.out
  38. BIN
      build/test/out/test_temperatur.out
  39. BIN
      build/test/out/test_zahlenraten.out
  40. 163
      build/test/preprocess/files/test_temperatur.c
  41. 3
      build/test/preprocess/includes/test_temperatur.c
  42. 2
      build/test/results/test_MatheSpiele.pass
  43. 2
      build/test/results/test_SchereSteinPapier.pass
  44. 2
      build/test/results/test_WortSpiel.pass
  45. 2
      build/test/results/test_ageinseconds.pass
  46. 2
      build/test/results/test_bmi.pass
  47. 2
      build/test/results/test_minirechner.pass
  48. 46
      build/test/results/test_temperatur.pass
  49. 2
      build/test/results/test_zahlenraten.pass
  50. 95
      build/test/runners/test_temperatur_runner.c
  51. 3
      src/menue.c

14
build/test/cache/defines_dependency.yml

@ -1,15 +1,17 @@
--- ---
src/ageinseconds.c:
- TEST
src/minirechner.c:
- TEST
src/zahlenraten.c:
src/MatheSpiele.c:
- TEST - TEST
src/SchereSteinPapier.c: src/SchereSteinPapier.c:
- TEST - TEST
src/WortSpiel.c: src/WortSpiel.c:
- TEST - TEST
src/ageinseconds.c:
- TEST
src/bmi.c: src/bmi.c:
- TEST - TEST
src/MatheSpiele.c:
src/minirechner.c:
- TEST
src/temperatur.c:
- TEST
src/zahlenraten.c:
- TEST - TEST

163
build/test/cache/test_temperatur.c

@ -0,0 +1,163 @@
#include "src/temperatur.h"
#include "C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h"
void setUp(void)
{
}
void tearDown(void)
{
}
void test_temperaturRechner_CzuF(void)
{
float result = CzuF(25);
float expected = 77;
UnityAssertEqualNumber((UNITY_INT)((expected)), (UNITY_INT)((result)), (
((void *)0)
), (UNITY_UINT)(19), UNITY_DISPLAY_STYLE_INT);
}
void test_temperaturRechner_CzuK(void)
{
float result = CzuK(25);
float expected = 298.15;
UnityAssertEqualNumber((UNITY_INT)((expected)), (UNITY_INT)((result)), (
((void *)0)
), (UNITY_UINT)(26), UNITY_DISPLAY_STYLE_INT);
}
void test_temperaturRechner_FzuC(void)
{
float result = FzuC(77);
float expected = 25;
UnityAssertEqualNumber((UNITY_INT)((expected)), (UNITY_INT)((result)), (
((void *)0)
), (UNITY_UINT)(34), UNITY_DISPLAY_STYLE_INT);
}
void test_temperaturRechner_FzuK(void)
{
float result = FzuK(77);
float expected = 298.15;
UnityAssertEqualNumber((UNITY_INT)((expected)), (UNITY_INT)((result)), (
((void *)0)
), (UNITY_UINT)(40), UNITY_DISPLAY_STYLE_INT);
}
void test_temperaturRechner_KzuC(void)
{
float result = KzuC(298.15);
float expected = 25;
UnityAssertEqualNumber((UNITY_INT)((expected)), (UNITY_INT)((result)), (
((void *)0)
), (UNITY_UINT)(47), UNITY_DISPLAY_STYLE_INT);
}
void test_temperaturRechner_KzuF(void)
{
float result = KzuF(298.15);
float expected = 77;
UnityAssertEqualNumber((UNITY_INT)((expected)), (UNITY_INT)((result)), (
((void *)0)
), (UNITY_UINT)(53), UNITY_DISPLAY_STYLE_INT);
}
void test_returnUnit_first(void)
{
const char *result = getFirstUnit(1);
char expected[] = "Celsius";
UnityAssertEqualString((const char*)((expected)), (const char*)((result)), (
((void *)0)
), (UNITY_UINT)(60));
}
void test_returnUnit_second(void)
{
const char *result = getSecondUnit(2);
char expected[] = " Kelvin";
UnityAssertEqualString((const char*)((expected)), (const char*)((result)), (
((void *)0)
), (UNITY_UINT)(66));
}

1
build/test/dependencies/temperatur.d

@ -0,0 +1 @@
build/test/out/c/temperatur.o: src/temperatur.c src/temperatur.h

4
build/test/dependencies/test_temperatur.d

@ -0,0 +1,4 @@
build/test/out/c/test_temperatur.o: test/test_temperatur.c \
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h \
src/temperatur.h

4
build/test/dependencies/test_temperatur_runner.d

@ -0,0 +1,4 @@
build/test/out/c/test_temperatur_runner.o: \
build/test/runners/test_temperatur_runner.c \
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h \
C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity_internals.h

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

BIN
build/test/out/test_MatheSpiele.out

BIN
build/test/out/test_SchereSteinPapier.out

BIN
build/test/out/test_WortSpiel.out

BIN
build/test/out/test_ageinseconds.out

BIN
build/test/out/test_bmi.out

BIN
build/test/out/test_minirechner.out

BIN
build/test/out/test_temperatur.out

BIN
build/test/out/test_zahlenraten.out

163
build/test/preprocess/files/test_temperatur.c

@ -0,0 +1,163 @@
#include "src/temperatur.h"
#include "C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h"
void setUp(void)
{
}
void tearDown(void)
{
}
void test_temperaturRechner_CzuF(void)
{
float result = CzuF(25);
float expected = 77;
UnityAssertEqualNumber((UNITY_INT)((expected)), (UNITY_INT)((result)), (
((void *)0)
), (UNITY_UINT)(19), UNITY_DISPLAY_STYLE_INT);
}
void test_temperaturRechner_CzuK(void)
{
float result = CzuK(25);
float expected = 298.15;
UnityAssertEqualNumber((UNITY_INT)((expected)), (UNITY_INT)((result)), (
((void *)0)
), (UNITY_UINT)(26), UNITY_DISPLAY_STYLE_INT);
}
void test_temperaturRechner_FzuC(void)
{
float result = FzuC(77);
float expected = 25;
UnityAssertEqualNumber((UNITY_INT)((expected)), (UNITY_INT)((result)), (
((void *)0)
), (UNITY_UINT)(34), UNITY_DISPLAY_STYLE_INT);
}
void test_temperaturRechner_FzuK(void)
{
float result = FzuK(77);
float expected = 298.15;
UnityAssertEqualNumber((UNITY_INT)((expected)), (UNITY_INT)((result)), (
((void *)0)
), (UNITY_UINT)(40), UNITY_DISPLAY_STYLE_INT);
}
void test_temperaturRechner_KzuC(void)
{
float result = KzuC(298.15);
float expected = 25;
UnityAssertEqualNumber((UNITY_INT)((expected)), (UNITY_INT)((result)), (
((void *)0)
), (UNITY_UINT)(47), UNITY_DISPLAY_STYLE_INT);
}
void test_temperaturRechner_KzuF(void)
{
float result = KzuF(298.15);
float expected = 77;
UnityAssertEqualNumber((UNITY_INT)((expected)), (UNITY_INT)((result)), (
((void *)0)
), (UNITY_UINT)(53), UNITY_DISPLAY_STYLE_INT);
}
void test_returnUnit_first(void)
{
const char *result = getFirstUnit(1);
char expected[] = "Celsius";
UnityAssertEqualString((const char*)((expected)), (const char*)((result)), (
((void *)0)
), (UNITY_UINT)(60));
}
void test_returnUnit_second(void)
{
const char *result = getSecondUnit(2);
char expected[] = " Kelvin";
UnityAssertEqualString((const char*)((expected)), (const char*)((result)), (
((void *)0)
), (UNITY_UINT)(66));
}

3
build/test/preprocess/includes/test_temperatur.c

@ -0,0 +1,3 @@
---
- C:/Ruby30-x64/lib/ruby/gems/3.0.0/gems/ceedling-0.31.1/vendor/unity/src/unity.h
- src/temperatur.h

2
build/test/results/test_MatheSpiele.pass

@ -15,4 +15,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.853215300001466
:time: 0.023374399868771434

2
build/test/results/test_SchereSteinPapier.pass

@ -19,4 +19,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.06440469999870402
:time: 0.019652399932965636

2
build/test/results/test_WortSpiel.pass

@ -59,4 +59,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.056614699999045115
:time: 0.021685399813577533

2
build/test/results/test_ageinseconds.pass

@ -23,4 +23,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.05363690000012866
:time: 0.022122299997135997

2
build/test/results/test_bmi.pass

@ -19,4 +19,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.05756960000144318
:time: 0.02165220002643764

2
build/test/results/test_minirechner.pass

@ -83,4 +83,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.05367609999666456
:time: 0.020430400036275387

46
build/test/results/test_temperatur.pass

@ -0,0 +1,46 @@
---
:source:
:path: test
:file: test_temperatur.c
:successes:
- :test: test_temperaturRechner_CzuF
:line: 15
:message: ''
:unity_test_time: 0
- :test: test_temperaturRechner_CzuK
:line: 22
:message: ''
:unity_test_time: 0
- :test: test_temperaturRechner_FzuC
:line: 30
:message: ''
:unity_test_time: 0
- :test: test_temperaturRechner_FzuK
:line: 36
:message: ''
:unity_test_time: 0
- :test: test_temperaturRechner_KzuC
:line: 43
:message: ''
:unity_test_time: 0
- :test: test_temperaturRechner_KzuF
:line: 49
:message: ''
:unity_test_time: 0
- :test: test_returnUnit_first
:line: 56
:message: ''
:unity_test_time: 0
- :test: test_returnUnit_second
:line: 62
:message: ''
:unity_test_time: 0
:failures: []
:ignores: []
:counts:
:total: 8
:passed: 8
:failed: 0
:ignored: 0
:stdout: []
:time: 0.021130899898707867

2
build/test/results/test_zahlenraten.pass

@ -15,4 +15,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.0543950000028417
:time: 0.021387699991464615

95
build/test/runners/test_temperatur_runner.c

@ -0,0 +1,95 @@
/* 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_temperaturRechner_CzuF(void);
extern void test_temperaturRechner_CzuK(void);
extern void test_temperaturRechner_FzuC(void);
extern void test_temperaturRechner_FzuK(void);
extern void test_temperaturRechner_KzuC(void);
extern void test_temperaturRechner_KzuF(void);
extern void test_returnUnit_first(void);
extern void test_returnUnit_second(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_temperatur.c");
run_test(test_temperaturRechner_CzuF, "test_temperaturRechner_CzuF", 15);
run_test(test_temperaturRechner_CzuK, "test_temperaturRechner_CzuK", 22);
run_test(test_temperaturRechner_FzuC, "test_temperaturRechner_FzuC", 30);
run_test(test_temperaturRechner_FzuK, "test_temperaturRechner_FzuK", 36);
run_test(test_temperaturRechner_KzuC, "test_temperaturRechner_KzuC", 43);
run_test(test_temperaturRechner_KzuF, "test_temperaturRechner_KzuF", 49);
run_test(test_returnUnit_first, "test_returnUnit_first", 56);
run_test(test_returnUnit_second, "test_returnUnit_second", 62);
return UnityEnd();
}

3
src/menue.c

@ -53,8 +53,9 @@ int main() {
case 6: case 6:
run_bmi(); run_bmi();
break;
case 7;
case 7:
run_wortspiel(); run_wortspiel();
break; break;

Loading…
Cancel
Save