diff --git a/build/test/cache/test_casualQuiz.c b/build/test/cache/test_casualQuiz.c index b71a1c0..1875b3f 100644 --- a/build/test/cache/test_casualQuiz.c +++ b/build/test/cache/test_casualQuiz.c @@ -136,7 +136,7 @@ void test_FcheckaufRichtigkeit_correct_answer_atIndex3(void){ } -void test_FcheckaufRichtigkeit_incorrect_input(void){ +void test_FcheckaufRichtigkeit_incorrect_input_higher(void){ int TESTeingabe = 5; @@ -159,3 +159,27 @@ void test_FcheckaufRichtigkeit_incorrect_input(void){ )) {} else {UnityFail( ((" Expected TRUE Was FALSE")), (UNITY_UINT)((UNITY_UINT)(63)));}} while(0); } + +void test_FcheckaufRichtigkeit_incorrect_input_lower(void){ + + int TESTeingabe = -1; + + 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)(71)));}} while(0); + +} diff --git a/build/test/out/c/test_casualQuiz.o b/build/test/out/c/test_casualQuiz.o index 3b8094f..50c8296 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 47fabb1..d8460b8 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 9367705..e27a696 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 b71a1c0..1875b3f 100644 --- a/build/test/preprocess/files/test_casualQuiz.c +++ b/build/test/preprocess/files/test_casualQuiz.c @@ -136,7 +136,7 @@ void test_FcheckaufRichtigkeit_correct_answer_atIndex3(void){ } -void test_FcheckaufRichtigkeit_incorrect_input(void){ +void test_FcheckaufRichtigkeit_incorrect_input_higher(void){ int TESTeingabe = 5; @@ -159,3 +159,27 @@ void test_FcheckaufRichtigkeit_incorrect_input(void){ )) {} else {UnityFail( ((" Expected TRUE Was FALSE")), (UNITY_UINT)((UNITY_UINT)(63)));}} while(0); } + +void test_FcheckaufRichtigkeit_incorrect_input_lower(void){ + + int TESTeingabe = -1; + + 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)(71)));}} while(0); + +} diff --git a/build/test/results/test_casualQuiz.pass b/build/test/results/test_casualQuiz.pass index 37b2407..6607d70 100644 --- a/build/test/results/test_casualQuiz.pass +++ b/build/test/results/test_casualQuiz.pass @@ -19,15 +19,19 @@ :line: 47 :message: '' :unity_test_time: 0 -- :test: test_FcheckaufRichtigkeit_incorrect_input +- :test: test_FcheckaufRichtigkeit_incorrect_input_higher :line: 57 :message: '' :unity_test_time: 0 +- :test: test_FcheckaufRichtigkeit_incorrect_input_lower + :line: 65 + :message: '' + :unity_test_time: 0 :failures: [] :ignores: [] :counts: - :total: 5 - :passed: 5 + :total: 6 + :passed: 6 :failed: 0 :ignored: 0 :stdout: @@ -40,4 +44,5 @@ - Case 4 - Right Answer, well done. - Wrong Input! -:time: 0.035433499986538664 +- Wrong Input! +:time: 0.03493439999874681 diff --git a/build/test/results/test_quizduell.pass b/build/test/results/test_quizduell.pass index 923abc1..64b243b 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.014862199983326718 +:time: 0.014303199975984171 diff --git a/build/test/results/test_timequiz.pass b/build/test/results/test_timequiz.pass index ac053f3..2bee253 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.014781000005314127 +:time: 0.014138700003968552 diff --git a/build/test/results/test_wwm.pass b/build/test/results/test_wwm.pass index 50dfda3..e449187 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.013869599992176518 +:time: 0.01387090000207536 diff --git a/build/test/runners/test_casualQuiz_runner.c b/build/test/runners/test_casualQuiz_runner.c index 32524cf..1adbb10 100644 --- a/build/test/runners/test_casualQuiz_runner.c +++ b/build/test/runners/test_casualQuiz_runner.c @@ -14,7 +14,8 @@ extern void test_FcheckaufRichtigkeit_correct_answer_atIndex1(void); extern void test_FcheckaufRichtigkeit_correct_answer_atIndex2(void); extern void test_FcheckaufRichtigkeit_correct_answer_atIndex3(void); extern void test_FcheckaufRichtigkeit_correct_answer_atIndex4(void); -extern void test_FcheckaufRichtigkeit_incorrect_input(void); +extern void test_FcheckaufRichtigkeit_incorrect_input_higher(void); +extern void test_FcheckaufRichtigkeit_incorrect_input_lower(void); /*=======Mock Management=====*/ @@ -83,7 +84,8 @@ int main(void) 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); run_test(test_FcheckaufRichtigkeit_correct_answer_atIndex4, "test_FcheckaufRichtigkeit_correct_answer_atIndex4", 47); - run_test(test_FcheckaufRichtigkeit_incorrect_input, "test_FcheckaufRichtigkeit_incorrect_input", 57); + run_test(test_FcheckaufRichtigkeit_incorrect_input_higher, "test_FcheckaufRichtigkeit_incorrect_input_higher", 57); + run_test(test_FcheckaufRichtigkeit_incorrect_input_lower, "test_FcheckaufRichtigkeit_incorrect_input_lower", 65); return UnityEnd(); } diff --git a/test/test_casualQuiz.c b/test/test_casualQuiz.c index f9c1609..569ca54 100644 --- a/test/test_casualQuiz.c +++ b/test/test_casualQuiz.c @@ -54,7 +54,7 @@ void test_FcheckaufRichtigkeit_correct_answer_atIndex3(void){ TEST_ASSERT_TRUE(testfall == true); } -void test_FcheckaufRichtigkeit_incorrect_input(void){ +void test_FcheckaufRichtigkeit_incorrect_input_higher(void){ int TESTeingabe = 5; int TESTindex = 0; int TESTrichtige_antwort[]={3}; @@ -62,4 +62,12 @@ void test_FcheckaufRichtigkeit_incorrect_input(void){ testfall = FcheckaufRichtigkeit(TESTeingabe, TESTrichtige_antwort, TESTindex); TEST_ASSERT_TRUE(testfall != true); } +void test_FcheckaufRichtigkeit_incorrect_input_lower(void){ + int TESTeingabe = -1; + 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