From 1a76c737b91eb5a31dd524c590758fe90e503a89 Mon Sep 17 00:00:00 2001 From: Lennart Goetze Date: Wed, 7 Feb 2024 21:19:08 +0100 Subject: [PATCH] Aufruffunktion --- .../test/results/test_SchereSteinPapier.pass | 2 +- build/test/results/test_WortSpiel.pass | 2 +- build/test/results/test_ageinseconds.pass | 2 +- build/test/results/test_bmi.pass | 2 +- build/test/results/test_minirechner.pass | 2 +- build/test/results/test_zahlenraten.pass | 2 +- src/MatheSpiele.c | 19 ++++++++++++++++++ src/MatheSpiele.h | 5 +++++ test/test_MatheSpiele.c | 20 +++++++++++++++++++ 9 files changed, 50 insertions(+), 6 deletions(-) create mode 100644 src/MatheSpiele.c create mode 100644 src/MatheSpiele.h create mode 100644 test/test_MatheSpiele.c diff --git a/build/test/results/test_SchereSteinPapier.pass b/build/test/results/test_SchereSteinPapier.pass index b746d06..08d9c8b 100644 --- a/build/test/results/test_SchereSteinPapier.pass +++ b/build/test/results/test_SchereSteinPapier.pass @@ -19,4 +19,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.05505930000072112 +:time: 0.06440469999870402 diff --git a/build/test/results/test_WortSpiel.pass b/build/test/results/test_WortSpiel.pass index 4b784b9..79e484b 100644 --- a/build/test/results/test_WortSpiel.pass +++ b/build/test/results/test_WortSpiel.pass @@ -59,4 +59,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.5986981999994896 +:time: 0.056614699999045115 diff --git a/build/test/results/test_ageinseconds.pass b/build/test/results/test_ageinseconds.pass index 06ea858..d991ac1 100644 --- a/build/test/results/test_ageinseconds.pass +++ b/build/test/results/test_ageinseconds.pass @@ -23,4 +23,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.050159799997345544 +:time: 0.05363690000012866 diff --git a/build/test/results/test_bmi.pass b/build/test/results/test_bmi.pass index d418c1f..de1fa1f 100644 --- a/build/test/results/test_bmi.pass +++ b/build/test/results/test_bmi.pass @@ -19,4 +19,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.3213505999992776 +:time: 0.05756960000144318 diff --git a/build/test/results/test_minirechner.pass b/build/test/results/test_minirechner.pass index 6081f80..c338050 100644 --- a/build/test/results/test_minirechner.pass +++ b/build/test/results/test_minirechner.pass @@ -83,4 +83,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.049012799998308765 +:time: 0.05367609999666456 diff --git a/build/test/results/test_zahlenraten.pass b/build/test/results/test_zahlenraten.pass index 175080b..593b6bc 100644 --- a/build/test/results/test_zahlenraten.pass +++ b/build/test/results/test_zahlenraten.pass @@ -15,4 +15,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.04845479999858071 +:time: 0.0543950000028417 diff --git a/src/MatheSpiele.c b/src/MatheSpiele.c new file mode 100644 index 0000000..5252dda --- /dev/null +++ b/src/MatheSpiele.c @@ -0,0 +1,19 @@ +#include "MatheSpiele.h" +#include +#include +#include + + + +int run_mathespiele() { + srand((unsigned int)time(NULL)); + + int rounds; + printf("Wie viele Fragen moechten Sie beantworten? "); + scanf("%d", &rounds); + + // Das Spiel durchführen + runMathGame(rounds); + + return 0; +} \ No newline at end of file diff --git a/src/MatheSpiele.h b/src/MatheSpiele.h new file mode 100644 index 0000000..c2ab984 --- /dev/null +++ b/src/MatheSpiele.h @@ -0,0 +1,5 @@ +#ifndef MATHESPIELE_H +#define MATHESPIELE_H + + +#endif // MATHESPIELE_H diff --git a/test/test_MatheSpiele.c b/test/test_MatheSpiele.c new file mode 100644 index 0000000..be4c6a3 --- /dev/null +++ b/test/test_MatheSpiele.c @@ -0,0 +1,20 @@ +#ifdef TEST + +#include "unity.h" + +#include "MatheSpiele.h" + +void setUp(void) +{ +} + +void tearDown(void) +{ +} + +void test_MatheSpiele_NeedToImplement(void) +{ + TEST_IGNORE_MESSAGE("Need to Implement MatheSpiele"); +} + +#endif // TEST