Browse Source

First functional commit, program structure and all the files

main
Florian Baeseler 11 months ago
parent
commit
842747d3a4
  1. 0
      build/test/cache/test_casualQuiz.c
  2. 0
      build/test/cache/test_quizduell.c
  3. 0
      build/test/cache/test_wwm.c
  4. 1
      build/test/dependencies/test_casualQuiz.d
  5. 4
      build/test/dependencies/test_casualQuiz_runner.d
  6. 1
      build/test/dependencies/test_quizduell.d
  7. 4
      build/test/dependencies/test_quizduell_runner.d
  8. 1
      build/test/dependencies/test_wwm.d
  9. 3
      build/test/dependencies/test_wwm_runner.d
  10. BIN
      build/test/out/c/test_casualQuiz.o
  11. BIN
      build/test/out/c/test_casualQuiz_runner.o
  12. BIN
      build/test/out/c/test_quizduell.o
  13. BIN
      build/test/out/c/test_quizduell_runner.o
  14. BIN
      build/test/out/c/test_timequiz.o
  15. BIN
      build/test/out/c/test_timequiz_runner.o
  16. BIN
      build/test/out/c/test_wwm.o
  17. BIN
      build/test/out/c/test_wwm_runner.o
  18. BIN
      build/test/out/test_casualQuiz.out
  19. BIN
      build/test/out/test_quizduell.out
  20. BIN
      build/test/out/test_timequiz.out
  21. BIN
      build/test/out/test_wwm.out
  22. 0
      build/test/preprocess/files/test_casualQuiz.c
  23. 0
      build/test/preprocess/files/test_quizduell.c
  24. 0
      build/test/preprocess/files/test_wwm.c
  25. 1
      build/test/preprocess/includes/test_casualQuiz.c
  26. 1
      build/test/preprocess/includes/test_quizduell.c
  27. 1
      build/test/preprocess/includes/test_wwm.c
  28. 14
      build/test/results/test_casualQuiz.pass
  29. 14
      build/test/results/test_quizduell.pass
  30. 2
      build/test/results/test_timequiz.pass
  31. 14
      build/test/results/test_wwm.pass
  32. 57
      build/test/runners/test_casualQuiz_runner.c
  33. 57
      build/test/runners/test_quizduell_runner.c
  34. 57
      build/test/runners/test_wwm_runner.c
  35. 0
      src/casualQuiz.c
  36. 8
      src/casualQuiz.h
  37. 41
      src/programm.c
  38. 0
      src/quizduell.c
  39. 7
      src/quizduell.h
  40. 6
      src/timequiz.h
  41. 0
      src/wwm.c
  42. 6
      src/wwm.h
  43. 0
      test/test_casualQuiz.c
  44. 0
      test/test_quizduell.c
  45. 0
      test/test_wwm.c

0
build/test/cache/test_casualQuiz.c

0
build/test/cache/test_quizduell.c

0
build/test/cache/test_wwm.c

1
build/test/dependencies/test_casualQuiz.d

@ -0,0 +1 @@
build/test/out/c/test_casualQuiz.o: test/test_casualQuiz.c

4
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

1
build/test/dependencies/test_quizduell.d

@ -0,0 +1 @@
build/test/out/c/test_quizduell.o: test/test_quizduell.c

4
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

1
build/test/dependencies/test_wwm.d

@ -0,0 +1 @@
build/test/out/c/test_wwm.o: test/test_wwm.c

3
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

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

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

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

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

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

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

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

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

BIN
build/test/out/test_casualQuiz.out

BIN
build/test/out/test_quizduell.out

BIN
build/test/out/test_timequiz.out

BIN
build/test/out/test_wwm.out

0
build/test/preprocess/files/test_casualQuiz.c

0
build/test/preprocess/files/test_quizduell.c

0
build/test/preprocess/files/test_wwm.c

1
build/test/preprocess/includes/test_casualQuiz.c

@ -0,0 +1 @@
--- []

1
build/test/preprocess/includes/test_quizduell.c

@ -0,0 +1 @@
--- []

1
build/test/preprocess/includes/test_wwm.c

@ -0,0 +1 @@
--- []

14
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

14
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

2
build/test/results/test_timequiz.pass

@ -11,4 +11,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.007023261016001925
:time: 0.0043847519846167415

14
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

57
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();
}

57
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();
}

57
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();
}

0
src/casualQuiz.c

8
src/casualQuiz.h

@ -0,0 +1,8 @@
#ifndef CASUALQUIZ_H
#define CASUALQUIZ_H
void casualQuiz();
#endif // ende CASUALQUIZ_H

41
src/programm.c

@ -0,0 +1,41 @@
#include <stdio.h>
#include <stdbool.h>
#include <time.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include <iostream.h>
#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;
}

0
src/quizduell.c

7
src/quizduell.h

@ -0,0 +1,7 @@
#ifndef QUIZDUELL_H
#define QUIZDUELL_H
void quizduell();
#endif // ende QUIZDUELL_H

6
src/timequiz.h

@ -0,0 +1,6 @@
#ifndef TIMEQUIZ_H
#define TIMEQUIZ_H
void timequiz();
#endif //ende TIMEQUIZ_H

0
src/wwm.c

6
src/wwm.h

@ -0,0 +1,6 @@
#ifndef WWM_H
#define WWM_H
void wwm();
#endif // ende WWM_H

0
test/test_casualQuiz.c

0
test/test_quizduell.c

0
test/test_wwm.c

Loading…
Cancel
Save