diff --git a/build/test/results/test_casualQuiz.pass b/build/test/results/test_casualQuiz.pass index daff2bb..0bc5efb 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.01711440000008224 +:time: 0.030125300000008792 diff --git a/build/test/results/test_quizduell.pass b/build/test/results/test_quizduell.pass index 4c4270e..8d3b1f2 100644 --- a/build/test/results/test_quizduell.pass +++ b/build/test/results/test_quizduell.pass @@ -11,4 +11,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.017044999999939137 +:time: 0.027771300000040355 diff --git a/build/test/results/test_timequiz.pass b/build/test/results/test_timequiz.pass index be3b211..54e9236 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.01672519999999622 +:time: 0.028294399999936104 diff --git a/build/test/results/test_wwm.pass b/build/test/results/test_wwm.pass index 8bdd9d6..e1d9402 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.016789599999924576 +:time: 0.027808699999923192 diff --git a/test/test_quizduell.c b/test/test_quizduell.c index e69de29..73c8c94 100644 --- a/test/test_quizduell.c +++ b/test/test_quizduell.c @@ -0,0 +1,21 @@ +#ifdef TEST + +#include +#include "unity.h" +#include "quizduell.h" + +void setUp(void) {} + +void tearDown(void) {} + +void test_erstelleFrage(void) { + QuizFrage testFrage = erstelleFrage("Testfrage", "AntwortA", "AntwortB", "AntwortC", "AntwortD", 'A'); + + TEST_ASSERT_EQUAL_STRING("Testfrage", testFrage.frage); + TEST_ASSERT_EQUAL_STRING("AntwortA", testFrage.antwortA); + TEST_ASSERT_EQUAL_STRING("AntwortB", testFrage.antwortB); + TEST_ASSERT_EQUAL_STRING("AntwortC", testFrage.antwortC); + TEST_ASSERT_EQUAL_STRING("AntwortD", testFrage.antwortD); + TEST_ASSERT_EQUAL_CHAR('A', testFrage.korrekteAntwort); +} +#endif //TEST \ No newline at end of file