Browse Source

Unittest: loescheBuchstabe Buchstabe existiert nicht im Wort

remotes/origin/wortspieldev
Lennart Goetze 11 months ago
parent
commit
f5ad7c1a73
  1. 2
      build/test/cache/test_WortSpiel.c
  2. BIN
      build/test/out/c/test_WortSpiel.o
  3. BIN
      build/test/out/test_WortSpiel.out
  4. 2
      build/test/preprocess/files/test_WortSpiel.c
  5. 2
      build/test/results/test_SchereSteinPapier.pass
  6. 14
      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

2
build/test/cache/test_WortSpiel.c

@ -32,7 +32,7 @@ void testLoescheBuchstaben_Buchstabeexistiert(void) {
loescheBuchstaben(wort1, 'i'); loescheBuchstaben(wort1, 'i');
UnityAssertEqualString((const char*)(("Bebspel")), (const char*)((wort1)), (
UnityAssertEqualString((const char*)(("Bespel")), (const char*)((wort1)), (
((void *)0) ((void *)0)

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

BIN
build/test/out/test_WortSpiel.out

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

@ -32,7 +32,7 @@ void testLoescheBuchstaben_Buchstabeexistiert(void) {
loescheBuchstaben(wort1, 'i'); loescheBuchstaben(wort1, 'i');
UnityAssertEqualString((const char*)(("Bebspel")), (const char*)((wort1)), (
UnityAssertEqualString((const char*)(("Bespel")), (const char*)((wort1)), (
((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.8377281999992192
:time: 0.04440909999993892

14
build/test/results/test_WortSpiel.fail → build/test/results/test_WortSpiel.pass

@ -2,17 +2,17 @@
:source: :source:
:path: test :path: test
:file: test_WortSpiel.c :file: test_WortSpiel.c
:successes: []
:failures:
:successes:
- :test: testLoescheBuchstaben_Buchstabeexistiert - :test: testLoescheBuchstaben_Buchstabeexistiert
:line: 19
:message: Expected 'Bebspel' Was 'Bespel'
:line: 15
:message: ''
:unity_test_time: 0 :unity_test_time: 0
:failures: []
:ignores: [] :ignores: []
:counts: :counts:
:total: 1 :total: 1
:passed: 0
:failed: 1
:passed: 1
:failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.3247099000000162
:time: 0.04108590000032564

2
build/test/results/test_ageinseconds.pass

@ -23,4 +23,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.3112941999997929
:time: 0.040819099999680475

2
build/test/results/test_minirechner.pass

@ -83,4 +83,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.3098992000004728
:time: 0.04071340000064083

2
build/test/results/test_zahlenraten.pass

@ -15,4 +15,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.31609219999972993
:time: 0.04103339999983291

6
test/test_WortSpiel.c

@ -19,4 +19,10 @@ void testLoescheBuchstaben_Buchstabeexistiert(void) {
TEST_ASSERT_EQUAL_STRING("Bespel", wort1); TEST_ASSERT_EQUAL_STRING("Bespel", wort1);
} }
void testLoescheBuchstaben_Buchstabeexistiertnicht(void) {
char wort2[] = "Test";
loescheBuchstaben(wort2, 'z');
TEST_ASSERT_EQUAL_STRING("Test", wort2);
}
#endif // TEST #endif // TEST
Loading…
Cancel
Save