@ -1,3 +1,3 @@
quiz-game.exe
unittests-exec.exe
quiz-game
unittests-exec
/.vscode
@ -1,5 +0,0 @@
gcc src/*.c -o quiz-game
gcc unittests/*.c src/functions.c -I src -o unittests-exec
@ -20,7 +20,7 @@ void startGame(int catCount, char* input, Category* categories)
{
for (int i = 0; i < lvlQuestions[level].size; i++)
printf(lvlQuestions[level].questions[i].question);
printf("%s", lvlQuestions[level].questions[i].question);
printf(" ");
fgets(input, 256, stdin);
input[strlen(input) - 1] = '\0';
@ -0,0 +1,8 @@
#include "tests.h"
void test_3()
printf("TEST 3 STARTET\n");
assert(!compareStrings("567", "567"));
printf("TEST 3 ERFOLGREICH\n");
}
@ -6,4 +6,5 @@ int main()
test_1();
test_2();
test_3();
@ -7,3 +7,4 @@
void test_1();
void test_2();
void test_3();