diff --git a/build/test/cache/test_casualQuiz.c b/build/test/cache/test_casualQuiz.c new file mode 100644 index 0000000..e69de29 diff --git a/build/test/cache/test_quizduell.c b/build/test/cache/test_quizduell.c new file mode 100644 index 0000000..e69de29 diff --git a/build/test/cache/test_wwm.c b/build/test/cache/test_wwm.c new file mode 100644 index 0000000..e69de29 diff --git a/build/test/dependencies/test_casualQuiz.d b/build/test/dependencies/test_casualQuiz.d new file mode 100644 index 0000000..5256c22 --- /dev/null +++ b/build/test/dependencies/test_casualQuiz.d @@ -0,0 +1 @@ +build/test/out/c/test_casualQuiz.o: test/test_casualQuiz.c diff --git a/build/test/dependencies/test_casualQuiz_runner.d b/build/test/dependencies/test_casualQuiz_runner.d new file mode 100644 index 0000000..636c727 --- /dev/null +++ b/build/test/dependencies/test_casualQuiz_runner.d @@ -0,0 +1,4 @@ +build/test/out/c/test_casualQuiz_runner.o: \ + build/test/runners/test_casualQuiz_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 diff --git a/build/test/dependencies/test_quizduell.d b/build/test/dependencies/test_quizduell.d new file mode 100644 index 0000000..b2861de --- /dev/null +++ b/build/test/dependencies/test_quizduell.d @@ -0,0 +1 @@ +build/test/out/c/test_quizduell.o: test/test_quizduell.c diff --git a/build/test/dependencies/test_quizduell_runner.d b/build/test/dependencies/test_quizduell_runner.d new file mode 100644 index 0000000..39185b6 --- /dev/null +++ b/build/test/dependencies/test_quizduell_runner.d @@ -0,0 +1,4 @@ +build/test/out/c/test_quizduell_runner.o: \ + build/test/runners/test_quizduell_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 diff --git a/build/test/dependencies/test_wwm.d b/build/test/dependencies/test_wwm.d new file mode 100644 index 0000000..afd6520 --- /dev/null +++ b/build/test/dependencies/test_wwm.d @@ -0,0 +1 @@ +build/test/out/c/test_wwm.o: test/test_wwm.c diff --git a/build/test/dependencies/test_wwm_runner.d b/build/test/dependencies/test_wwm_runner.d new file mode 100644 index 0000000..6594640 --- /dev/null +++ b/build/test/dependencies/test_wwm_runner.d @@ -0,0 +1,3 @@ +build/test/out/c/test_wwm_runner.o: build/test/runners/test_wwm_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 diff --git a/build/test/out/c/test_casualQuiz.o b/build/test/out/c/test_casualQuiz.o new file mode 100644 index 0000000..056d894 Binary files /dev/null and b/build/test/out/c/test_casualQuiz.o differ diff --git a/build/test/out/c/test_casualQuiz_runner.o b/build/test/out/c/test_casualQuiz_runner.o new file mode 100644 index 0000000..9291cc5 Binary files /dev/null and b/build/test/out/c/test_casualQuiz_runner.o differ diff --git a/build/test/out/c/test_quizduell.o b/build/test/out/c/test_quizduell.o new file mode 100644 index 0000000..d320de5 Binary files /dev/null and b/build/test/out/c/test_quizduell.o differ diff --git a/build/test/out/c/test_quizduell_runner.o b/build/test/out/c/test_quizduell_runner.o new file mode 100644 index 0000000..f255dc5 Binary files /dev/null and b/build/test/out/c/test_quizduell_runner.o differ diff --git a/build/test/out/c/test_timequiz.o b/build/test/out/c/test_timequiz.o index e6567f0..44d422a 100644 Binary files a/build/test/out/c/test_timequiz.o and b/build/test/out/c/test_timequiz.o differ diff --git a/build/test/out/c/test_timequiz_runner.o b/build/test/out/c/test_timequiz_runner.o index 4129d95..4ce060a 100644 Binary files a/build/test/out/c/test_timequiz_runner.o and b/build/test/out/c/test_timequiz_runner.o differ diff --git a/build/test/out/c/test_wwm.o b/build/test/out/c/test_wwm.o new file mode 100644 index 0000000..c1fb4e9 Binary files /dev/null and b/build/test/out/c/test_wwm.o differ diff --git a/build/test/out/c/test_wwm_runner.o b/build/test/out/c/test_wwm_runner.o new file mode 100644 index 0000000..8cbff0e Binary files /dev/null and b/build/test/out/c/test_wwm_runner.o differ diff --git a/build/test/out/test_casualQuiz.out b/build/test/out/test_casualQuiz.out new file mode 100755 index 0000000..5e23927 Binary files /dev/null and b/build/test/out/test_casualQuiz.out differ diff --git a/build/test/out/test_quizduell.out b/build/test/out/test_quizduell.out new file mode 100755 index 0000000..1d12660 Binary files /dev/null and b/build/test/out/test_quizduell.out differ diff --git a/build/test/out/test_timequiz.out b/build/test/out/test_timequiz.out index 142107a..b11a47c 100755 Binary files a/build/test/out/test_timequiz.out and b/build/test/out/test_timequiz.out differ diff --git a/build/test/out/test_wwm.out b/build/test/out/test_wwm.out new file mode 100755 index 0000000..621f189 Binary files /dev/null and b/build/test/out/test_wwm.out differ diff --git a/build/test/preprocess/files/test_casualQuiz.c b/build/test/preprocess/files/test_casualQuiz.c new file mode 100644 index 0000000..e69de29 diff --git a/build/test/preprocess/files/test_quizduell.c b/build/test/preprocess/files/test_quizduell.c new file mode 100644 index 0000000..e69de29 diff --git a/build/test/preprocess/files/test_wwm.c b/build/test/preprocess/files/test_wwm.c new file mode 100644 index 0000000..e69de29 diff --git a/build/test/preprocess/includes/test_casualQuiz.c b/build/test/preprocess/includes/test_casualQuiz.c new file mode 100644 index 0000000..dcd024e --- /dev/null +++ b/build/test/preprocess/includes/test_casualQuiz.c @@ -0,0 +1 @@ +--- [] diff --git a/build/test/preprocess/includes/test_quizduell.c b/build/test/preprocess/includes/test_quizduell.c new file mode 100644 index 0000000..dcd024e --- /dev/null +++ b/build/test/preprocess/includes/test_quizduell.c @@ -0,0 +1 @@ +--- [] diff --git a/build/test/preprocess/includes/test_wwm.c b/build/test/preprocess/includes/test_wwm.c new file mode 100644 index 0000000..dcd024e --- /dev/null +++ b/build/test/preprocess/includes/test_wwm.c @@ -0,0 +1 @@ +--- [] diff --git a/build/test/results/test_casualQuiz.pass b/build/test/results/test_casualQuiz.pass new file mode 100644 index 0000000..f499a71 --- /dev/null +++ b/build/test/results/test_casualQuiz.pass @@ -0,0 +1,14 @@ +--- +:source: + :path: test + :file: test_casualQuiz.c +:successes: [] +:failures: [] +:ignores: [] +:counts: + :total: 0 + :passed: 0 + :failed: 0 + :ignored: 0 +:stdout: [] +:time: 0.004336156009230763 diff --git a/build/test/results/test_quizduell.pass b/build/test/results/test_quizduell.pass new file mode 100644 index 0000000..c39a5bb --- /dev/null +++ b/build/test/results/test_quizduell.pass @@ -0,0 +1,14 @@ +--- +:source: + :path: test + :file: test_quizduell.c +:successes: [] +:failures: [] +:ignores: [] +:counts: + :total: 0 + :passed: 0 + :failed: 0 + :ignored: 0 +:stdout: [] +:time: 0.004334530996857211 diff --git a/build/test/results/test_timequiz.pass b/build/test/results/test_timequiz.pass index cd364f0..b96e36f 100644 --- a/build/test/results/test_timequiz.pass +++ b/build/test/results/test_timequiz.pass @@ -11,4 +11,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.007023261016001925 +:time: 0.0043847519846167415 diff --git a/build/test/results/test_wwm.pass b/build/test/results/test_wwm.pass new file mode 100644 index 0000000..5af2254 --- /dev/null +++ b/build/test/results/test_wwm.pass @@ -0,0 +1,14 @@ +--- +:source: + :path: test + :file: test_wwm.c +:successes: [] +:failures: [] +:ignores: [] +:counts: + :total: 0 + :passed: 0 + :failed: 0 + :ignored: 0 +:stdout: [] +:time: 0.004366140026831999 diff --git a/build/test/runners/test_casualQuiz_runner.c b/build/test/runners/test_casualQuiz_runner.c new file mode 100644 index 0000000..78eb33b --- /dev/null +++ b/build/test/runners/test_casualQuiz_runner.c @@ -0,0 +1,57 @@ +/* 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); + + +/*=======Mock Management=====*/ +static void CMock_Init(void) +{ + GlobalExpectCount = 0; + GlobalVerifyOrder = 0; + GlobalOrderError = NULL; +} +static void CMock_Verify(void) +{ +} +static void CMock_Destroy(void) +{ +} + +/*=======Setup (stub)=====*/ +void setUp(void) {} + +/*=======Teardown (stub)=====*/ +void tearDown(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(); +} + +/*=======MAIN=====*/ +int main(void) +{ + UnityBegin("test_casualQuiz.c"); + + return UnityEnd(); +} diff --git a/build/test/runners/test_quizduell_runner.c b/build/test/runners/test_quizduell_runner.c new file mode 100644 index 0000000..a93b0e4 --- /dev/null +++ b/build/test/runners/test_quizduell_runner.c @@ -0,0 +1,57 @@ +/* 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); + + +/*=======Mock Management=====*/ +static void CMock_Init(void) +{ + GlobalExpectCount = 0; + GlobalVerifyOrder = 0; + GlobalOrderError = NULL; +} +static void CMock_Verify(void) +{ +} +static void CMock_Destroy(void) +{ +} + +/*=======Setup (stub)=====*/ +void setUp(void) {} + +/*=======Teardown (stub)=====*/ +void tearDown(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(); +} + +/*=======MAIN=====*/ +int main(void) +{ + UnityBegin("test_quizduell.c"); + + return UnityEnd(); +} diff --git a/build/test/runners/test_wwm_runner.c b/build/test/runners/test_wwm_runner.c new file mode 100644 index 0000000..a1a6aa9 --- /dev/null +++ b/build/test/runners/test_wwm_runner.c @@ -0,0 +1,57 @@ +/* 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); + + +/*=======Mock Management=====*/ +static void CMock_Init(void) +{ + GlobalExpectCount = 0; + GlobalVerifyOrder = 0; + GlobalOrderError = NULL; +} +static void CMock_Verify(void) +{ +} +static void CMock_Destroy(void) +{ +} + +/*=======Setup (stub)=====*/ +void setUp(void) {} + +/*=======Teardown (stub)=====*/ +void tearDown(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(); +} + +/*=======MAIN=====*/ +int main(void) +{ + UnityBegin("test_wwm.c"); + + return UnityEnd(); +} diff --git a/src/casualQuiz.c b/src/casualQuiz.c new file mode 100644 index 0000000..e69de29 diff --git a/src/casualQuiz.h b/src/casualQuiz.h new file mode 100644 index 0000000..5b3c846 --- /dev/null +++ b/src/casualQuiz.h @@ -0,0 +1,8 @@ +#ifndef CASUALQUIZ_H +#define CASUALQUIZ_H + +void casualQuiz(); + + + +#endif // ende CASUALQUIZ_H diff --git a/src/programm.c b/src/programm.c index e69de29..455b36a 100644 --- a/src/programm.c +++ b/src/programm.c @@ -0,0 +1,41 @@ +#include +#include +#include +#include +#include +#include +#include + + +#include "timequiz.h" +#include "casualQuiz.h" +#include "quizduell.h" +#include "wwm.h" + +int main(){ + int eingabe = 0; + printf("Welcome to our quiz.\n"); + printf("Please choose one of the modes by inpuitting 1, 2, 3 or 4.\n"); + printf("1 for the casual mode, 2 for a time-restricted mode,\n3 for the classic who wants to be a millionaire mode, and 4 for a quizduell:\n"); + scanf_s("%d", &eingabe); + switch (eingabe){ + case 1:{ casualQuiz(); + break;} + case 2:{ timequiz(); + break;} + case 3:{ wwm(); + break;} + case 4:{ quizduell(); + break;} + default: printf("Invalid input!"); + + + + } + + + +return 0; +} + + diff --git a/src/quizduell.c b/src/quizduell.c new file mode 100644 index 0000000..e69de29 diff --git a/src/quizduell.h b/src/quizduell.h new file mode 100644 index 0000000..631b6bd --- /dev/null +++ b/src/quizduell.h @@ -0,0 +1,7 @@ +#ifndef QUIZDUELL_H +#define QUIZDUELL_H + +void quizduell(); + +#endif // ende QUIZDUELL_H + diff --git a/src/timequiz.h b/src/timequiz.h index e69de29..271061e 100644 --- a/src/timequiz.h +++ b/src/timequiz.h @@ -0,0 +1,6 @@ +#ifndef TIMEQUIZ_H +#define TIMEQUIZ_H + +void timequiz(); + +#endif //ende TIMEQUIZ_H diff --git a/src/wwm.c b/src/wwm.c new file mode 100644 index 0000000..e69de29 diff --git a/src/wwm.h b/src/wwm.h new file mode 100644 index 0000000..48ea4a9 --- /dev/null +++ b/src/wwm.h @@ -0,0 +1,6 @@ +#ifndef WWM_H +#define WWM_H + +void wwm(); + +#endif // ende WWM_H diff --git a/test/test_casualQuiz.c b/test/test_casualQuiz.c new file mode 100644 index 0000000..e69de29 diff --git a/test/test_quizduell.c b/test/test_quizduell.c new file mode 100644 index 0000000..e69de29 diff --git a/test/test_wwm.c b/test/test_wwm.c new file mode 100644 index 0000000..e69de29