diff --git a/build/test/out/c/quizduell.o b/build/test/out/c/quizduell.o index 9e44f6d..a06cec8 100644 Binary files a/build/test/out/c/quizduell.o and b/build/test/out/c/quizduell.o differ diff --git a/build/test/out/test_quizduell.out b/build/test/out/test_quizduell.out index 029b766..a2ccd82 100755 Binary files a/build/test/out/test_quizduell.out and b/build/test/out/test_quizduell.out differ diff --git a/build/test/results/test_casualQuiz.pass b/build/test/results/test_casualQuiz.pass index b94be7a..e93f606 100644 --- a/build/test/results/test_casualQuiz.pass +++ b/build/test/results/test_casualQuiz.pass @@ -11,4 +11,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.0162731000000349 +:time: 0.016199899999946865 diff --git a/build/test/results/test_quizduell.pass b/build/test/results/test_quizduell.pass new file mode 100644 index 0000000..7685b4d --- /dev/null +++ b/build/test/results/test_quizduell.pass @@ -0,0 +1,18 @@ +--- +:source: + :path: test + :file: test_quizduell.c +:successes: +- :test: test_erstelleFrage + :line: 11 + :message: '' + :unity_test_time: 0 +:failures: [] +:ignores: [] +:counts: + :total: 1 + :passed: 1 + :failed: 0 + :ignored: 0 +:stdout: [] +:time: 0.0318529999999555 diff --git a/build/test/results/test_timequiz.pass b/build/test/results/test_timequiz.pass index a98d86c..31f9cc9 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.016043299999864757 +:time: 0.01590089999990596 diff --git a/build/test/results/test_wwm.pass b/build/test/results/test_wwm.pass index 488d63e..d49875e 100644 --- a/build/test/results/test_wwm.pass +++ b/build/test/results/test_wwm.pass @@ -11,4 +11,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.016211100000191436 +:time: 0.016400100000055318 diff --git a/src/quizduell.c b/src/quizduell.c index 46fed8b..26455d9 100644 --- a/src/quizduell.c +++ b/src/quizduell.c @@ -93,6 +93,13 @@ void quizduell() { } } + if (auswahlIndex != -1 && kategorien[auswahlIndex].fragen != NULL) { + int punkte = spieleKategorie(&kategorien[auswahlIndex]); + printf("\nPoints in this category: %d\n", punkte); + + befreieKategorie(&kategorien[auswahlIndex]); + } + return; }