diff --git a/build/test/cache/test_casualQuiz.c b/build/test/cache/test_casualQuiz.c index 729b49d..0579500 100644 --- a/build/test/cache/test_casualQuiz.c +++ b/build/test/cache/test_casualQuiz.c @@ -302,4 +302,44 @@ void test_FzaehlernachAuswahl_falsch_bei_0(void){ +} + +void test_FzaehlernachAuswahl_falsch_bei_1(void){ + + + + _Bool + + richtig = + + 0 + + ; + + int correct = 1; + + int answered = 1; + + int* correctP = &correct; + + int* answeredP = &answered; + + FzaehlernachAuswahl(richtig, answeredP, correctP); + + + + UnityAssertEqualNumber((UNITY_INT)((1)), (UNITY_INT)((correct)), ( + + ((void *)0) + + ), (UNITY_UINT)(117), UNITY_DISPLAY_STYLE_INT); + + UnityAssertEqualNumber((UNITY_INT)((2)), (UNITY_INT)((answered)), ( + + ((void *)0) + + ), (UNITY_UINT)(118), UNITY_DISPLAY_STYLE_INT); + + + } diff --git a/build/test/out/c/test_casualQuiz.o b/build/test/out/c/test_casualQuiz.o index f00b736..96d0904 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 aaa39aa..e49a9fe 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 e8c4c92..a991412 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 729b49d..0579500 100644 --- a/build/test/preprocess/files/test_casualQuiz.c +++ b/build/test/preprocess/files/test_casualQuiz.c @@ -302,4 +302,44 @@ void test_FzaehlernachAuswahl_falsch_bei_0(void){ +} + +void test_FzaehlernachAuswahl_falsch_bei_1(void){ + + + + _Bool + + richtig = + + 0 + + ; + + int correct = 1; + + int answered = 1; + + int* correctP = &correct; + + int* answeredP = &answered; + + FzaehlernachAuswahl(richtig, answeredP, correctP); + + + + UnityAssertEqualNumber((UNITY_INT)((1)), (UNITY_INT)((correct)), ( + + ((void *)0) + + ), (UNITY_UINT)(117), UNITY_DISPLAY_STYLE_INT); + + UnityAssertEqualNumber((UNITY_INT)((2)), (UNITY_INT)((answered)), ( + + ((void *)0) + + ), (UNITY_UINT)(118), UNITY_DISPLAY_STYLE_INT); + + + } diff --git a/build/test/results/test_casualQuiz.pass b/build/test/results/test_casualQuiz.pass index c01e43f..29700f7 100644 --- a/build/test/results/test_casualQuiz.pass +++ b/build/test/results/test_casualQuiz.pass @@ -39,11 +39,15 @@ :line: 97 :message: '' :unity_test_time: 0 +- :test: test_FzaehlernachAuswahl_falsch_bei_1 + :line: 109 + :message: '' + :unity_test_time: 0 :failures: [] :ignores: [] :counts: - :total: 9 - :passed: 9 + :total: 10 + :passed: 10 :failed: 0 :ignored: 0 :stdout: @@ -57,4 +61,4 @@ - Right Answer, well done. - Wrong Input! - Wrong Input! -:time: 0.035101499990560114 +:time: 0.03535600000759587 diff --git a/build/test/results/test_quizduell.pass b/build/test/results/test_quizduell.pass index 8a7b9ce..e8f66ee 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.013820099993608892 +:time: 0.016479099984280765 diff --git a/build/test/results/test_timequiz.pass b/build/test/results/test_timequiz.pass index 470ad6a..f5b657d 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.014337700034957379 +:time: 0.015310700051486492 diff --git a/build/test/results/test_wwm.pass b/build/test/results/test_wwm.pass index d11fb5b..5aa7e10 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.01380850002169609 +:time: 0.015567699971143156 diff --git a/build/test/runners/test_casualQuiz_runner.c b/build/test/runners/test_casualQuiz_runner.c index 6200a14..c5f4bff 100644 --- a/build/test/runners/test_casualQuiz_runner.c +++ b/build/test/runners/test_casualQuiz_runner.c @@ -19,6 +19,7 @@ extern void test_FcheckaufRichtigkeit_incorrect_input_lower(void); extern void test_FzaehlernachAuswahl(void); extern void test_FzaehlernachAuswahl_bei1(void); extern void test_FzaehlernachAuswahl_falsch_bei_0(void); +extern void test_FzaehlernachAuswahl_falsch_bei_1(void); /*=======Mock Management=====*/ @@ -92,6 +93,7 @@ int main(void) run_test(test_FzaehlernachAuswahl, "test_FzaehlernachAuswahl", 73); run_test(test_FzaehlernachAuswahl_bei1, "test_FzaehlernachAuswahl_bei1", 85); run_test(test_FzaehlernachAuswahl_falsch_bei_0, "test_FzaehlernachAuswahl_falsch_bei_0", 97); + run_test(test_FzaehlernachAuswahl_falsch_bei_1, "test_FzaehlernachAuswahl_falsch_bei_1", 109); return UnityEnd(); } diff --git a/test/test_casualQuiz.c b/test/test_casualQuiz.c index 1b4b2c2..137965e 100644 --- a/test/test_casualQuiz.c +++ b/test/test_casualQuiz.c @@ -105,5 +105,17 @@ void test_FzaehlernachAuswahl_falsch_bei_0(void){ TEST_ASSERT_EQUAL_INT(0, correct); TEST_ASSERT_EQUAL_INT(1, answered); +} +void test_FzaehlernachAuswahl_falsch_bei_1(void){ + bool richtig = false; + int correct = 1; + int answered = 1; + int* correctP = &correct; + int* answeredP = &answered; + FzaehlernachAuswahl(richtig, answeredP, correctP); + + TEST_ASSERT_EQUAL_INT(1, correct); + TEST_ASSERT_EQUAL_INT(2, answered); + } #endif //Test \ No newline at end of file