diff --git a/build/test/cache/test_casualQuiz.c b/build/test/cache/test_casualQuiz.c index 3ba8c00..09ecd51 100644 --- a/build/test/cache/test_casualQuiz.c +++ b/build/test/cache/test_casualQuiz.c @@ -222,4 +222,44 @@ void test_FzaehlernachAuswahl(void){ +} + +void test_FzaehlernachAuswahl_bei1(void){ + + + + _Bool + + richtig = + + 1 + + ; + + int correct = 1; + + int answered = 1; + + int* correctP = &correct; + + int* answeredP = &answered; + + FzaehlernachAuswahl(richtig, answeredP, correctP); + + + + UnityAssertEqualNumber((UNITY_INT)((2)), (UNITY_INT)((correct)), ( + + ((void *)0) + + ), (UNITY_UINT)(93), UNITY_DISPLAY_STYLE_INT); + + UnityAssertEqualNumber((UNITY_INT)((2)), (UNITY_INT)((answered)), ( + + ((void *)0) + + ), (UNITY_UINT)(94), UNITY_DISPLAY_STYLE_INT); + + + } diff --git a/build/test/out/c/test_casualQuiz.o b/build/test/out/c/test_casualQuiz.o index d6e2afd..9a12873 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 7b4628b..8497e24 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 5f3f74c..d642237 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 3ba8c00..09ecd51 100644 --- a/build/test/preprocess/files/test_casualQuiz.c +++ b/build/test/preprocess/files/test_casualQuiz.c @@ -222,4 +222,44 @@ void test_FzaehlernachAuswahl(void){ +} + +void test_FzaehlernachAuswahl_bei1(void){ + + + + _Bool + + richtig = + + 1 + + ; + + int correct = 1; + + int answered = 1; + + int* correctP = &correct; + + int* answeredP = &answered; + + FzaehlernachAuswahl(richtig, answeredP, correctP); + + + + UnityAssertEqualNumber((UNITY_INT)((2)), (UNITY_INT)((correct)), ( + + ((void *)0) + + ), (UNITY_UINT)(93), UNITY_DISPLAY_STYLE_INT); + + UnityAssertEqualNumber((UNITY_INT)((2)), (UNITY_INT)((answered)), ( + + ((void *)0) + + ), (UNITY_UINT)(94), UNITY_DISPLAY_STYLE_INT); + + + } diff --git a/build/test/results/test_casualQuiz.pass b/build/test/results/test_casualQuiz.pass index 092b2d7..6332ccd 100644 --- a/build/test/results/test_casualQuiz.pass +++ b/build/test/results/test_casualQuiz.pass @@ -31,11 +31,15 @@ :line: 73 :message: '' :unity_test_time: 0 +- :test: test_FzaehlernachAuswahl_bei1 + :line: 85 + :message: '' + :unity_test_time: 0 :failures: [] :ignores: [] :counts: - :total: 7 - :passed: 7 + :total: 8 + :passed: 8 :failed: 0 :ignored: 0 :stdout: @@ -49,4 +53,4 @@ - Right Answer, well done. - Wrong Input! - Wrong Input! -:time: 0.03667549998499453 +:time: 0.03635380003834143 diff --git a/build/test/results/test_quizduell.pass b/build/test/results/test_quizduell.pass index 83961b0..b8bf4b2 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.037954800005536526 +:time: 0.01403949997620657 diff --git a/build/test/results/test_timequiz.pass b/build/test/results/test_timequiz.pass index 707d5b1..4713100 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.03327270000590943 +:time: 0.01435820001643151 diff --git a/build/test/results/test_wwm.pass b/build/test/results/test_wwm.pass index a6c93e7..89e7006 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.031949899974279106 +:time: 0.013466000033076853 diff --git a/build/test/runners/test_casualQuiz_runner.c b/build/test/runners/test_casualQuiz_runner.c index 1788fc8..b0a86c8 100644 --- a/build/test/runners/test_casualQuiz_runner.c +++ b/build/test/runners/test_casualQuiz_runner.c @@ -17,6 +17,7 @@ extern void test_FcheckaufRichtigkeit_correct_answer_atIndex4(void); extern void test_FcheckaufRichtigkeit_incorrect_input_higher(void); extern void test_FcheckaufRichtigkeit_incorrect_input_lower(void); extern void test_FzaehlernachAuswahl(void); +extern void test_FzaehlernachAuswahl_bei1(void); /*=======Mock Management=====*/ @@ -88,6 +89,7 @@ int main(void) 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); run_test(test_FzaehlernachAuswahl, "test_FzaehlernachAuswahl", 73); + run_test(test_FzaehlernachAuswahl_bei1, "test_FzaehlernachAuswahl_bei1", 85); return UnityEnd(); } diff --git a/test/test_casualQuiz.c b/test/test_casualQuiz.c index 83174a3..ae58165 100644 --- a/test/test_casualQuiz.c +++ b/test/test_casualQuiz.c @@ -81,5 +81,17 @@ void test_FzaehlernachAuswahl(void){ TEST_ASSERT_EQUAL_INT(1, correct); TEST_ASSERT_EQUAL_INT(1, answered); +} +void test_FzaehlernachAuswahl_bei1(void){ + bool richtig = true; + int correct = 1; + int answered = 1; + int* correctP = &correct; + int* answeredP = &answered; + FzaehlernachAuswahl(richtig, answeredP, correctP); + + TEST_ASSERT_EQUAL_INT(2, correct); + TEST_ASSERT_EQUAL_INT(2, answered); + } #endif //Test \ No newline at end of file