Browse Source

Unittest 4 für richtige Eingabe index4

remotes/origin/Florian
Florian Baeseler 11 months ago
parent
commit
7853daea6b
  1. 26
      build/test/cache/test_casualQuiz.c
  2. BIN
      build/test/out/c/test_casualQuiz.o
  3. BIN
      build/test/out/c/test_casualQuiz_runner.o
  4. BIN
      build/test/out/test_casualQuiz.out
  5. 26
      build/test/preprocess/files/test_casualQuiz.c
  6. 12
      build/test/results/test_casualQuiz.pass
  7. 2
      build/test/results/test_quizduell.pass
  8. 2
      build/test/results/test_timequiz.pass
  9. 2
      build/test/results/test_wwm.pass
  10. 2
      build/test/runners/test_casualQuiz_runner.c
  11. 9
      test/test_casualQuiz.c

26
build/test/cache/test_casualQuiz.c

@ -108,4 +108,30 @@ void test_FcheckaufRichtigkeit_correct_answer_atIndex3(void){
}void test_FcheckaufRichtigkeit_correct_answer_atIndex4(void){
int TESTeingabe = 4;
int TESTindex = 0;
int TESTrichtige_antwort[]={4};
_Bool
testfall;
testfall = FcheckaufRichtigkeit(TESTeingabe, TESTrichtige_antwort, TESTindex);
do {if ((testfall ==
1
)) {} else {UnityFail( ((" Expected TRUE Was FALSE")), (UNITY_UINT)((UNITY_UINT)(54)));}} while(0);
} }

BIN
build/test/out/c/test_casualQuiz.o

BIN
build/test/out/c/test_casualQuiz_runner.o

BIN
build/test/out/test_casualQuiz.out

26
build/test/preprocess/files/test_casualQuiz.c

@ -108,4 +108,30 @@ void test_FcheckaufRichtigkeit_correct_answer_atIndex3(void){
}void test_FcheckaufRichtigkeit_correct_answer_atIndex4(void){
int TESTeingabe = 4;
int TESTindex = 0;
int TESTrichtige_antwort[]={4};
_Bool
testfall;
testfall = FcheckaufRichtigkeit(TESTeingabe, TESTrichtige_antwort, TESTindex);
do {if ((testfall ==
1
)) {} else {UnityFail( ((" Expected TRUE Was FALSE")), (UNITY_UINT)((UNITY_UINT)(54)));}} while(0);
} }

12
build/test/results/test_casualQuiz.pass

@ -15,11 +15,15 @@
:line: 38 :line: 38
:message: '' :message: ''
:unity_test_time: 0 :unity_test_time: 0
- :test: test_FcheckaufRichtigkeit_correct_answer_atIndex4
:line: 47
:message: ''
:unity_test_time: 0
:failures: [] :failures: []
:ignores: [] :ignores: []
:counts: :counts:
:total: 3
:passed: 3
:total: 4
:passed: 4
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: :stdout:
@ -29,4 +33,6 @@
- Right Answer, well done. - Right Answer, well done.
- Case 3 - Case 3
- Right Answer, well done. - Right Answer, well done.
:time: 0.033677700004773214
- Case 4
- Right Answer, well done.
:time: 0.03753680002409965

2
build/test/results/test_quizduell.pass

@ -11,4 +11,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.013405699981376529
:time: 0.014495200011879206

2
build/test/results/test_timequiz.pass

@ -11,4 +11,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.013762899994617328
:time: 0.014681000000564381

2
build/test/results/test_wwm.pass

@ -11,4 +11,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.02108940001926385
:time: 0.014845400000922382

2
build/test/runners/test_casualQuiz_runner.c

@ -13,6 +13,7 @@ extern void tearDown(void);
extern void test_FcheckaufRichtigkeit_correct_answer_atIndex1(void); extern void test_FcheckaufRichtigkeit_correct_answer_atIndex1(void);
extern void test_FcheckaufRichtigkeit_correct_answer_atIndex2(void); extern void test_FcheckaufRichtigkeit_correct_answer_atIndex2(void);
extern void test_FcheckaufRichtigkeit_correct_answer_atIndex3(void); extern void test_FcheckaufRichtigkeit_correct_answer_atIndex3(void);
extern void test_FcheckaufRichtigkeit_correct_answer_atIndex4(void);
/*=======Mock Management=====*/ /*=======Mock Management=====*/
@ -80,6 +81,7 @@ int main(void)
run_test(test_FcheckaufRichtigkeit_correct_answer_atIndex1, "test_FcheckaufRichtigkeit_correct_answer_atIndex1", 18); 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_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_atIndex3, "test_FcheckaufRichtigkeit_correct_answer_atIndex3", 38);
run_test(test_FcheckaufRichtigkeit_correct_answer_atIndex4, "test_FcheckaufRichtigkeit_correct_answer_atIndex4", 47);
return UnityEnd(); return UnityEnd();
} }

9
test/test_casualQuiz.c

@ -44,5 +44,14 @@ void test_FcheckaufRichtigkeit_correct_answer_atIndex3(void){
TEST_ASSERT_TRUE(testfall == true); TEST_ASSERT_TRUE(testfall == true);
}void test_FcheckaufRichtigkeit_correct_answer_atIndex4(void){
int TESTeingabe = 4;
int TESTindex = 0;
int TESTrichtige_antwort[]={4};
bool testfall;
testfall = FcheckaufRichtigkeit(TESTeingabe, TESTrichtige_antwort, TESTindex);
TEST_ASSERT_TRUE(testfall == true);
} }
#endif //Test #endif //Test
Loading…
Cancel
Save