diff --git a/build/test/cache/defines_dependency.yml b/build/test/cache/defines_dependency.yml index b9300c1..5ac0361 100644 --- a/build/test/cache/defines_dependency.yml +++ b/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 src/SchereSteinPapier.c: - TEST src/WortSpiel.c: - TEST +src/ageinseconds.c: +- TEST src/bmi.c: - TEST -src/MatheSpiele.c: +src/minirechner.c: +- TEST +src/temperatur.c: +- TEST +src/zahlenraten.c: - TEST diff --git a/build/test/cache/test_temperatur.c b/build/test/cache/test_temperatur.c new file mode 100644 index 0000000..e4db9e2 --- /dev/null +++ b/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)); + +} diff --git a/build/test/dependencies/temperatur.d b/build/test/dependencies/temperatur.d new file mode 100644 index 0000000..6296cfe --- /dev/null +++ b/build/test/dependencies/temperatur.d @@ -0,0 +1 @@ +build/test/out/c/temperatur.o: src/temperatur.c src/temperatur.h diff --git a/build/test/dependencies/test_temperatur.d b/build/test/dependencies/test_temperatur.d new file mode 100644 index 0000000..ec6ff76 --- /dev/null +++ b/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 diff --git a/build/test/dependencies/test_temperatur_runner.d b/build/test/dependencies/test_temperatur_runner.d new file mode 100644 index 0000000..ada394d --- /dev/null +++ b/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 diff --git a/build/test/out/c/MatheSpiele.o b/build/test/out/c/MatheSpiele.o index fe5a11b..059d0bc 100644 Binary files a/build/test/out/c/MatheSpiele.o and b/build/test/out/c/MatheSpiele.o differ diff --git a/build/test/out/c/SchereSteinPapier.o b/build/test/out/c/SchereSteinPapier.o index cf1ef35..36b02df 100644 Binary files a/build/test/out/c/SchereSteinPapier.o and b/build/test/out/c/SchereSteinPapier.o differ diff --git a/build/test/out/c/WortSpiel.o b/build/test/out/c/WortSpiel.o index 6775c8f..478c4a4 100644 Binary files a/build/test/out/c/WortSpiel.o and b/build/test/out/c/WortSpiel.o differ diff --git a/build/test/out/c/ageinseconds.o b/build/test/out/c/ageinseconds.o index fb15a6e..ed909e4 100644 Binary files a/build/test/out/c/ageinseconds.o and b/build/test/out/c/ageinseconds.o differ diff --git a/build/test/out/c/bmi.o b/build/test/out/c/bmi.o index 747edf2..8e365c6 100644 Binary files a/build/test/out/c/bmi.o and b/build/test/out/c/bmi.o differ diff --git a/build/test/out/c/cmock.o b/build/test/out/c/cmock.o index ba789c7..5e8344b 100644 Binary files a/build/test/out/c/cmock.o and b/build/test/out/c/cmock.o differ diff --git a/build/test/out/c/minirechner.o b/build/test/out/c/minirechner.o index 572116a..337088b 100644 Binary files a/build/test/out/c/minirechner.o and b/build/test/out/c/minirechner.o differ diff --git a/build/test/out/c/temperatur.o b/build/test/out/c/temperatur.o new file mode 100644 index 0000000..3eb10dc Binary files /dev/null and b/build/test/out/c/temperatur.o differ diff --git a/build/test/out/c/test_MatheSpiele.o b/build/test/out/c/test_MatheSpiele.o index a348ee7..93d617e 100644 Binary files a/build/test/out/c/test_MatheSpiele.o and b/build/test/out/c/test_MatheSpiele.o differ diff --git a/build/test/out/c/test_MatheSpiele_runner.o b/build/test/out/c/test_MatheSpiele_runner.o index 2a8c32f..e84a8ec 100644 Binary files a/build/test/out/c/test_MatheSpiele_runner.o and b/build/test/out/c/test_MatheSpiele_runner.o differ diff --git a/build/test/out/c/test_SchereSteinPapier.o b/build/test/out/c/test_SchereSteinPapier.o index 070fe23..01d8774 100644 Binary files a/build/test/out/c/test_SchereSteinPapier.o and b/build/test/out/c/test_SchereSteinPapier.o differ diff --git a/build/test/out/c/test_SchereSteinPapier_runner.o b/build/test/out/c/test_SchereSteinPapier_runner.o index cf0b230..c5ad3b3 100644 Binary files a/build/test/out/c/test_SchereSteinPapier_runner.o and b/build/test/out/c/test_SchereSteinPapier_runner.o differ diff --git a/build/test/out/c/test_WortSpiel.o b/build/test/out/c/test_WortSpiel.o index a88a13f..e2ba759 100644 Binary files a/build/test/out/c/test_WortSpiel.o and b/build/test/out/c/test_WortSpiel.o differ diff --git a/build/test/out/c/test_WortSpiel_runner.o b/build/test/out/c/test_WortSpiel_runner.o index 7f06cfe..582c68b 100644 Binary files a/build/test/out/c/test_WortSpiel_runner.o and b/build/test/out/c/test_WortSpiel_runner.o differ diff --git a/build/test/out/c/test_ageinseconds.o b/build/test/out/c/test_ageinseconds.o index f22eb66..d938bbf 100644 Binary files a/build/test/out/c/test_ageinseconds.o and b/build/test/out/c/test_ageinseconds.o differ diff --git a/build/test/out/c/test_ageinseconds_runner.o b/build/test/out/c/test_ageinseconds_runner.o index fd89869..5786edf 100644 Binary files a/build/test/out/c/test_ageinseconds_runner.o and b/build/test/out/c/test_ageinseconds_runner.o differ diff --git a/build/test/out/c/test_bmi.o b/build/test/out/c/test_bmi.o index 562389c..fa6516c 100644 Binary files a/build/test/out/c/test_bmi.o and b/build/test/out/c/test_bmi.o differ diff --git a/build/test/out/c/test_bmi_runner.o b/build/test/out/c/test_bmi_runner.o index 21d207e..ab00101 100644 Binary files a/build/test/out/c/test_bmi_runner.o and b/build/test/out/c/test_bmi_runner.o differ diff --git a/build/test/out/c/test_minirechner.o b/build/test/out/c/test_minirechner.o index 465ba67..0b763a7 100644 Binary files a/build/test/out/c/test_minirechner.o and b/build/test/out/c/test_minirechner.o differ diff --git a/build/test/out/c/test_minirechner_runner.o b/build/test/out/c/test_minirechner_runner.o index e340941..1e1eef0 100644 Binary files a/build/test/out/c/test_minirechner_runner.o and b/build/test/out/c/test_minirechner_runner.o differ diff --git a/build/test/out/c/test_temperatur.o b/build/test/out/c/test_temperatur.o new file mode 100644 index 0000000..8648581 Binary files /dev/null and b/build/test/out/c/test_temperatur.o differ diff --git a/build/test/out/c/test_temperatur_runner.o b/build/test/out/c/test_temperatur_runner.o new file mode 100644 index 0000000..3462133 Binary files /dev/null and b/build/test/out/c/test_temperatur_runner.o differ diff --git a/build/test/out/c/test_zahlenraten.o b/build/test/out/c/test_zahlenraten.o index be2aff1..4ba1eaa 100644 Binary files a/build/test/out/c/test_zahlenraten.o and b/build/test/out/c/test_zahlenraten.o differ diff --git a/build/test/out/c/test_zahlenraten_runner.o b/build/test/out/c/test_zahlenraten_runner.o index 0b14252..71f17a2 100644 Binary files a/build/test/out/c/test_zahlenraten_runner.o and b/build/test/out/c/test_zahlenraten_runner.o differ diff --git a/build/test/out/c/unity.o b/build/test/out/c/unity.o index 01f6c72..df16771 100644 Binary files a/build/test/out/c/unity.o and b/build/test/out/c/unity.o differ diff --git a/build/test/out/c/zahlenraten.o b/build/test/out/c/zahlenraten.o index 7214aaf..eb17ae1 100644 Binary files a/build/test/out/c/zahlenraten.o and b/build/test/out/c/zahlenraten.o differ diff --git a/build/test/out/test_MatheSpiele.out b/build/test/out/test_MatheSpiele.out index 3fd5ca7..2dc6314 100644 Binary files a/build/test/out/test_MatheSpiele.out and b/build/test/out/test_MatheSpiele.out differ diff --git a/build/test/out/test_SchereSteinPapier.out b/build/test/out/test_SchereSteinPapier.out index c34d366..d69a7a8 100644 Binary files a/build/test/out/test_SchereSteinPapier.out and b/build/test/out/test_SchereSteinPapier.out differ diff --git a/build/test/out/test_WortSpiel.out b/build/test/out/test_WortSpiel.out index 46f9f99..16b3de6 100644 Binary files a/build/test/out/test_WortSpiel.out and b/build/test/out/test_WortSpiel.out differ diff --git a/build/test/out/test_ageinseconds.out b/build/test/out/test_ageinseconds.out index e2d675c..158cf87 100644 Binary files a/build/test/out/test_ageinseconds.out and b/build/test/out/test_ageinseconds.out differ diff --git a/build/test/out/test_bmi.out b/build/test/out/test_bmi.out index 8264ae6..50b9fd6 100644 Binary files a/build/test/out/test_bmi.out and b/build/test/out/test_bmi.out differ diff --git a/build/test/out/test_minirechner.out b/build/test/out/test_minirechner.out index ae5ee8b..fde2243 100644 Binary files a/build/test/out/test_minirechner.out and b/build/test/out/test_minirechner.out differ diff --git a/build/test/out/test_temperatur.out b/build/test/out/test_temperatur.out new file mode 100644 index 0000000..6add27e Binary files /dev/null and b/build/test/out/test_temperatur.out differ diff --git a/build/test/out/test_zahlenraten.out b/build/test/out/test_zahlenraten.out index 0649942..ac6d223 100644 Binary files a/build/test/out/test_zahlenraten.out and b/build/test/out/test_zahlenraten.out differ diff --git a/build/test/preprocess/files/test_temperatur.c b/build/test/preprocess/files/test_temperatur.c new file mode 100644 index 0000000..e4db9e2 --- /dev/null +++ b/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)); + +} diff --git a/build/test/preprocess/includes/test_temperatur.c b/build/test/preprocess/includes/test_temperatur.c new file mode 100644 index 0000000..ab152af --- /dev/null +++ b/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 diff --git a/build/test/results/test_MatheSpiele.pass b/build/test/results/test_MatheSpiele.pass index db2b772..2227149 100644 --- a/build/test/results/test_MatheSpiele.pass +++ b/build/test/results/test_MatheSpiele.pass @@ -15,4 +15,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.853215300001466 +:time: 0.023374399868771434 diff --git a/build/test/results/test_SchereSteinPapier.pass b/build/test/results/test_SchereSteinPapier.pass index 08d9c8b..b773629 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.06440469999870402 +:time: 0.019652399932965636 diff --git a/build/test/results/test_WortSpiel.pass b/build/test/results/test_WortSpiel.pass index 79e484b..718930b 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.056614699999045115 +:time: 0.021685399813577533 diff --git a/build/test/results/test_ageinseconds.pass b/build/test/results/test_ageinseconds.pass index d991ac1..a01866d 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.05363690000012866 +:time: 0.022122299997135997 diff --git a/build/test/results/test_bmi.pass b/build/test/results/test_bmi.pass index de1fa1f..0166355 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.05756960000144318 +:time: 0.02165220002643764 diff --git a/build/test/results/test_minirechner.pass b/build/test/results/test_minirechner.pass index c338050..9c2aa7d 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.05367609999666456 +:time: 0.020430400036275387 diff --git a/build/test/results/test_temperatur.pass b/build/test/results/test_temperatur.pass new file mode 100644 index 0000000..12f5045 --- /dev/null +++ b/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 diff --git a/build/test/results/test_zahlenraten.pass b/build/test/results/test_zahlenraten.pass index 593b6bc..f4902c5 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.0543950000028417 +:time: 0.021387699991464615 diff --git a/build/test/runners/test_temperatur_runner.c b/build/test/runners/test_temperatur_runner.c new file mode 100644 index 0000000..d3be2c0 --- /dev/null +++ b/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(); +} diff --git a/src/menue.c b/src/menue.c index 913e885..fe0ddcd 100644 --- a/src/menue.c +++ b/src/menue.c @@ -51,10 +51,11 @@ int main() { run_scheresteinpapier(); break; - case 6: - run_bmi(); - - case 7; + case 6: + run_bmi(); + break; + + case 7: run_wortspiel(); break;