Browse Source

Unittest: sucheBuchstabe existiert nicht

remotes/origin/wortspieldev
Lennart Goetze 11 months ago
parent
commit
f4cfe09cc0
  1. 4
      build/test/cache/test_WortSpiel.c
  2. BIN
      build/test/out/c/test_WortSpiel.o
  3. BIN
      build/test/out/test_WortSpiel.out
  4. 4
      build/test/preprocess/files/test_WortSpiel.c
  5. 2
      build/test/results/test_SchereSteinPapier.pass
  6. 2
      build/test/results/test_WortSpiel.pass
  7. 2
      build/test/results/test_ageinseconds.pass
  8. 2
      build/test/results/test_minirechner.pass
  9. 2
      build/test/results/test_zahlenraten.pass
  10. 6
      test/test_WortSpiel.c

4
build/test/cache/test_WortSpiel.c

@ -178,9 +178,9 @@ void testSucheBuchstabe_existiert(void) {
char wort1[] = "Programming"; char wort1[] = "Programming";
int index1 = sucheBuchstabe(wort1, 'g');
int position = sucheBuchstabe(wort1, 'g');
UnityAssertEqualNumber((UNITY_INT)((3)), (UNITY_INT)((index1)), (
UnityAssertEqualNumber((UNITY_INT)((3)), (UNITY_INT)((position)), (
((void *)0) ((void *)0)

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

BIN
build/test/out/test_WortSpiel.out

4
build/test/preprocess/files/test_WortSpiel.c

@ -178,9 +178,9 @@ void testSucheBuchstabe_existiert(void) {
char wort1[] = "Programming"; char wort1[] = "Programming";
int index1 = sucheBuchstabe(wort1, 'g');
int position = sucheBuchstabe(wort1, 'g');
UnityAssertEqualNumber((UNITY_INT)((3)), (UNITY_INT)((index1)), (
UnityAssertEqualNumber((UNITY_INT)((3)), (UNITY_INT)((position)), (
((void *)0) ((void *)0)

2
build/test/results/test_SchereSteinPapier.pass

@ -19,4 +19,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.04560680000031425
:time: 0.04479449999962526

2
build/test/results/test_WortSpiel.pass

@ -51,4 +51,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.856331400000272
:time: 0.041727399999217596

2
build/test/results/test_ageinseconds.pass

@ -23,4 +23,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.04383059999963734
:time: 0.04086199999983364

2
build/test/results/test_minirechner.pass

@ -83,4 +83,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.04288310000083584
:time: 0.04104339999867079

2
build/test/results/test_zahlenraten.pass

@ -15,4 +15,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.042165499999100575
:time: 0.04154709999966144

6
test/test_WortSpiel.c

@ -76,6 +76,12 @@ void testSucheBuchstabe_existiert(void) {
} }
void testSucheBuchstabe_existiertnicht(void) {
char wort2[] = "Testing";
int position = sucheBuchstabe(wort2, 'z');
TEST_ASSERT_EQUAL_INT(-1, position);
}
#endif // TEST #endif // TEST
Loading…
Cancel
Save