diff --git a/build/test/cache/test_casualQuiz.c b/build/test/cache/test_casualQuiz.c index 0579500..db01ef5 100644 --- a/build/test/cache/test_casualQuiz.c +++ b/build/test/cache/test_casualQuiz.c @@ -342,4 +342,42 @@ void test_FzaehlernachAuswahl_falsch_bei_1(void){ +} + +void test_FtryAgain_butalways_played_is_false(void){ + + + +_Bool + + already_played = + + 0 + + ; + + + +_Bool + + testbool = + + 1 + + ; + + + +testbool = FtryAgain(already_played); + +do {if ((testbool == + +0 + +)) {} else {UnityFail( ((" Expected TRUE Was FALSE")), (UNITY_UINT)((UNITY_UINT)(126)));}} while(0); + + + + + } diff --git a/build/test/out/c/test_casualQuiz.o b/build/test/out/c/test_casualQuiz.o index 96d0904..5dd3720 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 e49a9fe..a7d44af 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 9d0e14c..140b4b5 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 0579500..db01ef5 100644 --- a/build/test/preprocess/files/test_casualQuiz.c +++ b/build/test/preprocess/files/test_casualQuiz.c @@ -342,4 +342,42 @@ void test_FzaehlernachAuswahl_falsch_bei_1(void){ +} + +void test_FtryAgain_butalways_played_is_false(void){ + + + +_Bool + + already_played = + + 0 + + ; + + + +_Bool + + testbool = + + 1 + + ; + + + +testbool = FtryAgain(already_played); + +do {if ((testbool == + +0 + +)) {} else {UnityFail( ((" Expected TRUE Was FALSE")), (UNITY_UINT)((UNITY_UINT)(126)));}} while(0); + + + + + } diff --git a/build/test/results/test_casualQuiz.pass b/build/test/results/test_casualQuiz.pass index d9f8493..9c81eed 100644 --- a/build/test/results/test_casualQuiz.pass +++ b/build/test/results/test_casualQuiz.pass @@ -43,11 +43,15 @@ :line: 109 :message: '' :unity_test_time: 0 +- :test: test_FtryAgain_butalways_played_is_false + :line: 121 + :message: '' + :unity_test_time: 0 :failures: [] :ignores: [] :counts: - :total: 10 - :passed: 10 + :total: 11 + :passed: 11 :failed: 0 :ignored: 0 :stdout: @@ -61,4 +65,5 @@ - Right Answer, well done. - Wrong Input! - Wrong Input! -:time: 0.03417200001422316 +- It looks like you havent played the program yet, starting it up... +:time: 0.03260759997647256 diff --git a/build/test/results/test_quizduell.pass b/build/test/results/test_quizduell.pass index ac349e2..c299b79 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.02757249999558553 +:time: 0.013434400025289506 diff --git a/build/test/results/test_timequiz.pass b/build/test/results/test_timequiz.pass index fa93c21..dd4a085 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.028207200055476278 +:time: 0.013458699977491051 diff --git a/build/test/results/test_wwm.pass b/build/test/results/test_wwm.pass index 1f12a18..84dde7c 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.027035499981138855 +:time: 0.013857100042514503 diff --git a/build/test/runners/test_casualQuiz_runner.c b/build/test/runners/test_casualQuiz_runner.c index c5f4bff..4ede39b 100644 --- a/build/test/runners/test_casualQuiz_runner.c +++ b/build/test/runners/test_casualQuiz_runner.c @@ -20,6 +20,7 @@ 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); +extern void test_FtryAgain_butalways_played_is_false(void); /*=======Mock Management=====*/ @@ -94,6 +95,7 @@ int main(void) 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); + run_test(test_FtryAgain_butalways_played_is_false, "test_FtryAgain_butalways_played_is_false", 121); return UnityEnd(); } diff --git a/test/test_casualQuiz.c b/test/test_casualQuiz.c index 137965e..16e19ac 100644 --- a/test/test_casualQuiz.c +++ b/test/test_casualQuiz.c @@ -117,5 +117,14 @@ void test_FzaehlernachAuswahl_falsch_bei_1(void){ TEST_ASSERT_EQUAL_INT(1, correct); TEST_ASSERT_EQUAL_INT(2, answered); +} +void test_FtryAgain_butalways_played_is_false(void){ +bool already_played = false; +bool testbool = true; + +testbool = FtryAgain(already_played); +TEST_ASSERT_TRUE(testbool == false); + + } #endif //Test \ No newline at end of file