diff --git a/build/test/cache/test_WortSpiel.c b/build/test/cache/test_WortSpiel.c index c3bd996..16eb314 100644 --- a/build/test/cache/test_WortSpiel.c +++ b/build/test/cache/test_WortSpiel.c @@ -178,9 +178,9 @@ void testSucheBuchstabe_existiert(void) { 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) diff --git a/build/test/out/c/test_WortSpiel.o b/build/test/out/c/test_WortSpiel.o index aed0554..2ceea08 100644 Binary files a/build/test/out/c/test_WortSpiel.o and b/build/test/out/c/test_WortSpiel.o differ diff --git a/build/test/out/test_WortSpiel.out b/build/test/out/test_WortSpiel.out index f4eb6c9..629b3b8 100644 Binary files a/build/test/out/test_WortSpiel.out and b/build/test/out/test_WortSpiel.out differ diff --git a/build/test/preprocess/files/test_WortSpiel.c b/build/test/preprocess/files/test_WortSpiel.c index c3bd996..16eb314 100644 --- a/build/test/preprocess/files/test_WortSpiel.c +++ b/build/test/preprocess/files/test_WortSpiel.c @@ -178,9 +178,9 @@ void testSucheBuchstabe_existiert(void) { 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) diff --git a/build/test/results/test_SchereSteinPapier.pass b/build/test/results/test_SchereSteinPapier.pass index b503cec..d262ba8 100644 --- a/build/test/results/test_SchereSteinPapier.pass +++ b/build/test/results/test_SchereSteinPapier.pass @@ -19,4 +19,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.04560680000031425 +:time: 0.04479449999962526 diff --git a/build/test/results/test_WortSpiel.pass b/build/test/results/test_WortSpiel.pass index 1e8c97e..0291e43 100644 --- a/build/test/results/test_WortSpiel.pass +++ b/build/test/results/test_WortSpiel.pass @@ -51,4 +51,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.856331400000272 +:time: 0.041727399999217596 diff --git a/build/test/results/test_ageinseconds.pass b/build/test/results/test_ageinseconds.pass index 517def0..102ad12 100644 --- a/build/test/results/test_ageinseconds.pass +++ b/build/test/results/test_ageinseconds.pass @@ -23,4 +23,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.04383059999963734 +:time: 0.04086199999983364 diff --git a/build/test/results/test_minirechner.pass b/build/test/results/test_minirechner.pass index 67b0f74..63c9494 100644 --- a/build/test/results/test_minirechner.pass +++ b/build/test/results/test_minirechner.pass @@ -83,4 +83,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.04288310000083584 +:time: 0.04104339999867079 diff --git a/build/test/results/test_zahlenraten.pass b/build/test/results/test_zahlenraten.pass index 4c2841f..2cce87f 100644 --- a/build/test/results/test_zahlenraten.pass +++ b/build/test/results/test_zahlenraten.pass @@ -15,4 +15,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.042165499999100575 +:time: 0.04154709999966144 diff --git a/test/test_WortSpiel.c b/test/test_WortSpiel.c index 4385251..af14f41 100644 --- a/test/test_WortSpiel.c +++ b/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