diff --git a/build/test/cache/test_casualQuiz.c b/build/test/cache/test_casualQuiz.c index 371df25..321d437 100644 --- a/build/test/cache/test_casualQuiz.c +++ b/build/test/cache/test_casualQuiz.c @@ -80,4 +80,32 @@ void test_FcheckaufRichtigkeit_correct_answer_atIndex2(void){ +} + +void test_FcheckaufRichtigkeit_correct_answer_atIndex3(void){ + + int TESTeingabe = 3; + + int TESTindex = 0; + + int TESTrichtige_antwort[]={3}; + + + + _Bool + + testfall; + + testfall = FcheckaufRichtigkeit(TESTeingabe, TESTrichtige_antwort, TESTindex); + + + + do {if ((testfall == + + 1 + + )) {} else {UnityFail( ((" Expected TRUE Was FALSE")), (UNITY_UINT)((UNITY_UINT)(45)));}} while(0); + + + } diff --git a/build/test/out/c/test_casualQuiz.o b/build/test/out/c/test_casualQuiz.o index 8288d0f..21cfad8 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 d1f11e1..76a4979 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 687fceb..5af5fe3 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 371df25..321d437 100644 --- a/build/test/preprocess/files/test_casualQuiz.c +++ b/build/test/preprocess/files/test_casualQuiz.c @@ -80,4 +80,32 @@ void test_FcheckaufRichtigkeit_correct_answer_atIndex2(void){ +} + +void test_FcheckaufRichtigkeit_correct_answer_atIndex3(void){ + + int TESTeingabe = 3; + + int TESTindex = 0; + + int TESTrichtige_antwort[]={3}; + + + + _Bool + + testfall; + + testfall = FcheckaufRichtigkeit(TESTeingabe, TESTrichtige_antwort, TESTindex); + + + + do {if ((testfall == + + 1 + + )) {} else {UnityFail( ((" Expected TRUE Was FALSE")), (UNITY_UINT)((UNITY_UINT)(45)));}} while(0); + + + } diff --git a/build/test/results/test_casualQuiz.pass b/build/test/results/test_casualQuiz.pass index 2cc9a8d..08e80bf 100644 --- a/build/test/results/test_casualQuiz.pass +++ b/build/test/results/test_casualQuiz.pass @@ -11,11 +11,15 @@ :line: 28 :message: '' :unity_test_time: 0 +- :test: test_FcheckaufRichtigkeit_correct_answer_atIndex3 + :line: 38 + :message: '' + :unity_test_time: 0 :failures: [] :ignores: [] :counts: - :total: 2 - :passed: 2 + :total: 3 + :passed: 3 :failed: 0 :ignored: 0 :stdout: @@ -23,4 +27,6 @@ - Right Answer, well done. - Case 2 - Right Answer, well done. -:time: 0.014663799986010417 +- Case 3 +- Right Answer, well done. +:time: 0.033677700004773214 diff --git a/build/test/results/test_quizduell.pass b/build/test/results/test_quizduell.pass index f075574..6c7c301 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.014229999971576035 +:time: 0.013405699981376529 diff --git a/build/test/results/test_timequiz.pass b/build/test/results/test_timequiz.pass index 1e6f858..6008229 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.01512130000628531 +:time: 0.013762899994617328 diff --git a/build/test/results/test_wwm.pass b/build/test/results/test_wwm.pass index 5f25b3f..8d12bee 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.016113399993628263 +:time: 0.02108940001926385 diff --git a/build/test/runners/test_casualQuiz_runner.c b/build/test/runners/test_casualQuiz_runner.c index c04921f..08aeef0 100644 --- a/build/test/runners/test_casualQuiz_runner.c +++ b/build/test/runners/test_casualQuiz_runner.c @@ -12,6 +12,7 @@ extern void setUp(void); extern void tearDown(void); extern void test_FcheckaufRichtigkeit_correct_answer_atIndex1(void); extern void test_FcheckaufRichtigkeit_correct_answer_atIndex2(void); +extern void test_FcheckaufRichtigkeit_correct_answer_atIndex3(void); /*=======Mock Management=====*/ @@ -78,6 +79,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); + run_test(test_FcheckaufRichtigkeit_correct_answer_atIndex3, "test_FcheckaufRichtigkeit_correct_answer_atIndex3", 38); return UnityEnd(); } diff --git a/test/test_casualQuiz.c b/test/test_casualQuiz.c index e21839a..68aedac 100644 --- a/test/test_casualQuiz.c +++ b/test/test_casualQuiz.c @@ -34,5 +34,15 @@ void test_FcheckaufRichtigkeit_correct_answer_atIndex2(void){ TEST_ASSERT_TRUE(testfall == true); +} +void test_FcheckaufRichtigkeit_correct_answer_atIndex3(void){ + int TESTeingabe = 3; + int TESTindex = 0; + int TESTrichtige_antwort[]={3}; + bool testfall; + testfall = FcheckaufRichtigkeit(TESTeingabe, TESTrichtige_antwort, TESTindex); + + TEST_ASSERT_TRUE(testfall == true); + } #endif //Test \ No newline at end of file