diff --git a/.gitignore b/.gitignore index 258070d..ec50e8e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ quiz-game.exe -unittests-exec.exe \ No newline at end of file +unittests-exec.exe +/.vscode \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json index e554b2a..c980a73 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,5 @@ { "files.associations": { - "functions.h": "c" + "tests.h": "c" } } \ No newline at end of file diff --git a/unittests/test_1.c b/unittests/test_1.c index 6951562..31dabbd 100644 --- a/unittests/test_1.c +++ b/unittests/test_1.c @@ -2,6 +2,7 @@ void test_1() { + printf("TEST 1 STARTET\n"); assert(!printEndMsg(220, 1110)); printf("TEST 1 ERFOLGREICH\n"); } \ No newline at end of file diff --git a/unittests/test_2.c b/unittests/test_2.c new file mode 100644 index 0000000..dfd44ae --- /dev/null +++ b/unittests/test_2.c @@ -0,0 +1,8 @@ +#include "tests.h" + +void test_2() +{ + printf("TEST 2 STARTET\n"); + assert(!compareStrings("HALLO", "HALLO")); + printf("TEST 2 ERFOLGREICH\n"); +} \ No newline at end of file diff --git a/unittests/test_main.c b/unittests/test_main.c index 5048a8c..8562ddc 100644 --- a/unittests/test_main.c +++ b/unittests/test_main.c @@ -5,4 +5,5 @@ int main() { test_1(); + test_2(); } \ No newline at end of file diff --git a/unittests/tests.h b/unittests/tests.h index 3604ea9..4df7f46 100644 --- a/unittests/tests.h +++ b/unittests/tests.h @@ -5,4 +5,5 @@ #include "functions.h" -void test_1(); \ No newline at end of file +void test_1(); +void test_2(); \ No newline at end of file