diff --git a/build/test/cache/test_casualQuiz.c b/build/test/cache/test_casualQuiz.c index 6c5d620..371df25 100644 --- a/build/test/cache/test_casualQuiz.c +++ b/build/test/cache/test_casualQuiz.c @@ -52,4 +52,32 @@ void test_FcheckaufRichtigkeit_correct_answer_atIndex1(void){ +} + +void test_FcheckaufRichtigkeit_correct_answer_atIndex2(void){ + + int TESTeingabe = 2; + + int TESTindex = 0; + + int TESTrichtige_antwort[]={2}; + + + + _Bool + + testfall; + + testfall = FcheckaufRichtigkeit(TESTeingabe, TESTrichtige_antwort, TESTindex); + + + + do {if ((testfall == + + 1 + + )) {} else {UnityFail( ((" Expected TRUE Was FALSE")), (UNITY_UINT)((UNITY_UINT)(35)));}} while(0); + + + } diff --git a/build/test/out/c/test_casualQuiz.o b/build/test/out/c/test_casualQuiz.o index 5a6b6a1..8288d0f 100644 Binary files a/build/test/out/c/test_casualQuiz.o and b/build/test/out/c/test_casualQuiz.o differ diff --git a/build/test/out/c/test_casualQuiz_runner.o b/build/test/out/c/test_casualQuiz_runner.o index d024caf..d1f11e1 100644 Binary files a/build/test/out/c/test_casualQuiz_runner.o and b/build/test/out/c/test_casualQuiz_runner.o differ diff --git a/build/test/out/test_casualQuiz.out b/build/test/out/test_casualQuiz.out index 2e1e40e..687fceb 100755 Binary files a/build/test/out/test_casualQuiz.out and b/build/test/out/test_casualQuiz.out differ diff --git a/build/test/preprocess/files/test_casualQuiz.c b/build/test/preprocess/files/test_casualQuiz.c index 6c5d620..371df25 100644 --- a/build/test/preprocess/files/test_casualQuiz.c +++ b/build/test/preprocess/files/test_casualQuiz.c @@ -52,4 +52,32 @@ void test_FcheckaufRichtigkeit_correct_answer_atIndex1(void){ +} + +void test_FcheckaufRichtigkeit_correct_answer_atIndex2(void){ + + int TESTeingabe = 2; + + int TESTindex = 0; + + int TESTrichtige_antwort[]={2}; + + + + _Bool + + testfall; + + testfall = FcheckaufRichtigkeit(TESTeingabe, TESTrichtige_antwort, TESTindex); + + + + do {if ((testfall == + + 1 + + )) {} else {UnityFail( ((" Expected TRUE Was FALSE")), (UNITY_UINT)((UNITY_UINT)(35)));}} while(0); + + + } diff --git a/build/test/results/test_casualQuiz.pass b/build/test/results/test_casualQuiz.pass index b27543c..2cc9a8d 100644 --- a/build/test/results/test_casualQuiz.pass +++ b/build/test/results/test_casualQuiz.pass @@ -7,14 +7,20 @@ :line: 18 :message: '' :unity_test_time: 0 +- :test: test_FcheckaufRichtigkeit_correct_answer_atIndex2 + :line: 28 + :message: '' + :unity_test_time: 0 :failures: [] :ignores: [] :counts: - :total: 1 - :passed: 1 + :total: 2 + :passed: 2 :failed: 0 :ignored: 0 :stdout: - Case 1 - Right Answer, well done. -:time: 0.01348839999991469 +- Case 2 +- Right Answer, well done. +:time: 0.014663799986010417 diff --git a/build/test/results/test_quizduell.pass b/build/test/results/test_quizduell.pass index 9d64abf..f075574 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.03404470000532456 +:time: 0.014229999971576035 diff --git a/build/test/results/test_timequiz.pass b/build/test/results/test_timequiz.pass index 13a42bc..1e6f858 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.03424040001118556 +:time: 0.01512130000628531 diff --git a/build/test/results/test_wwm.pass b/build/test/results/test_wwm.pass index 52a6125..5f25b3f 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.034191499988082796 +:time: 0.016113399993628263 diff --git a/build/test/runners/test_casualQuiz_runner.c b/build/test/runners/test_casualQuiz_runner.c index 743e5b3..c04921f 100644 --- a/build/test/runners/test_casualQuiz_runner.c +++ b/build/test/runners/test_casualQuiz_runner.c @@ -11,6 +11,7 @@ char* GlobalOrderError; extern void setUp(void); extern void tearDown(void); extern void test_FcheckaufRichtigkeit_correct_answer_atIndex1(void); +extern void test_FcheckaufRichtigkeit_correct_answer_atIndex2(void); /*=======Mock Management=====*/ @@ -76,6 +77,7 @@ int main(void) { UnityBegin("test_casualQuiz.c"); run_test(test_FcheckaufRichtigkeit_correct_answer_atIndex1, "test_FcheckaufRichtigkeit_correct_answer_atIndex1", 18); + run_test(test_FcheckaufRichtigkeit_correct_answer_atIndex2, "test_FcheckaufRichtigkeit_correct_answer_atIndex2", 28); return UnityEnd(); } diff --git a/test/test_casualQuiz.c b/test/test_casualQuiz.c index 664c6a6..e21839a 100644 --- a/test/test_casualQuiz.c +++ b/test/test_casualQuiz.c @@ -24,5 +24,15 @@ void test_FcheckaufRichtigkeit_correct_answer_atIndex1(void){ TEST_ASSERT_TRUE(testfall == true); +} +void test_FcheckaufRichtigkeit_correct_answer_atIndex2(void){ + int TESTeingabe = 2; + int TESTindex = 0; + int TESTrichtige_antwort[]={2}; + bool testfall; + testfall = FcheckaufRichtigkeit(TESTeingabe, TESTrichtige_antwort, TESTindex); + + TEST_ASSERT_TRUE(testfall == true); + } #endif //Test \ No newline at end of file