Browse Source

Unittest 3 für richtige Eingabe index3

remotes/origin/Florian
Florian Baeseler 11 months ago
parent
commit
9636f2c5c1
  1. 28
      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. 28
      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. 10
      test/test_casualQuiz.c

28
build/test/cache/test_casualQuiz.c

@ -80,4 +80,32 @@ void test_FcheckaufRichtigkeit_correct_answer_atIndex2(void){
}
void test_FcheckaufRichtigkeit_correct_answer_atIndex3(void){
int TESTeingabe = 3;
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)(45)));}} 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

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

@ -80,4 +80,32 @@ void test_FcheckaufRichtigkeit_correct_answer_atIndex2(void){
}
void test_FcheckaufRichtigkeit_correct_answer_atIndex3(void){
int TESTeingabe = 3;
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)(45)));}} while(0);
}

12
build/test/results/test_casualQuiz.pass

@ -11,11 +11,15 @@
:line: 28
:message: ''
:unity_test_time: 0
- :test: test_FcheckaufRichtigkeit_correct_answer_atIndex3
:line: 38
:message: ''
:unity_test_time: 0
:failures: []
:ignores: []
:counts:
:total: 2
:passed: 2
:total: 3
:passed: 3
:failed: 0
:ignored: 0
:stdout:
@ -23,4 +27,6 @@
- Right Answer, well done.
- Case 2
- Right Answer, well done.
:time: 0.014663799986010417
- Case 3
- Right Answer, well done.
:time: 0.033677700004773214

2
build/test/results/test_quizduell.pass

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

2
build/test/results/test_timequiz.pass

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

2
build/test/results/test_wwm.pass

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

2
build/test/runners/test_casualQuiz_runner.c

@ -12,6 +12,7 @@ extern void setUp(void);
extern void tearDown(void);
extern void test_FcheckaufRichtigkeit_correct_answer_atIndex1(void);
extern void test_FcheckaufRichtigkeit_correct_answer_atIndex2(void);
extern void test_FcheckaufRichtigkeit_correct_answer_atIndex3(void);
/*=======Mock Management=====*/
@ -78,6 +79,7 @@ int main(void)
UnityBegin("test_casualQuiz.c");
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_atIndex3, "test_FcheckaufRichtigkeit_correct_answer_atIndex3", 38);
return UnityEnd();
}

10
test/test_casualQuiz.c

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