diff --git a/build/test/cache/test_MatheSpiele.c b/build/test/cache/test_MatheSpiele.c index 41259c4..463e47c 100644 --- a/build/test/cache/test_MatheSpiele.c +++ b/build/test/cache/test_MatheSpiele.c @@ -28,20 +28,10 @@ void test_convertToDogYears_WhenAgeIsGreaterThanTwo_ShouldReturnExpectedValue(vo int result = convertToDogYears(3); - UnityAssertFloatsWithin((UNITY_FLOAT)((UNITY_FLOAT)((25.0)) * (UNITY_FLOAT)(0.00001f)), (UNITY_FLOAT)((UNITY_FLOAT)((25.0))), (UNITY_FLOAT)((UNITY_FLOAT)((result))), (( + UnityAssertEqualNumber((UNITY_INT)((24)), (UNITY_INT)((result)), ( ((void *)0) - )), (UNITY_UINT)((UNITY_UINT)(17))); - - - - result = convertToDogYears(5); - - UnityAssertFloatsWithin((UNITY_FLOAT)((UNITY_FLOAT)((37.0)) * (UNITY_FLOAT)(0.00001f)), (UNITY_FLOAT)((UNITY_FLOAT)((37.0))), (UNITY_FLOAT)((UNITY_FLOAT)((result))), (( - - ((void *)0) - - )), (UNITY_UINT)((UNITY_UINT)(20))); + ), (UNITY_UINT)(17), UNITY_DISPLAY_STYLE_INT); } diff --git a/build/test/out/c/MatheSpiele.o b/build/test/out/c/MatheSpiele.o index d15fd2a..fe5a11b 100644 Binary files a/build/test/out/c/MatheSpiele.o and b/build/test/out/c/MatheSpiele.o differ diff --git a/build/test/out/c/test_MatheSpiele.o b/build/test/out/c/test_MatheSpiele.o index ec63034..a348ee7 100644 Binary files a/build/test/out/c/test_MatheSpiele.o and b/build/test/out/c/test_MatheSpiele.o differ diff --git a/build/test/out/test_MatheSpiele.out b/build/test/out/test_MatheSpiele.out index f091bfd..3fd5ca7 100644 Binary files a/build/test/out/test_MatheSpiele.out and b/build/test/out/test_MatheSpiele.out differ diff --git a/build/test/preprocess/files/test_MatheSpiele.c b/build/test/preprocess/files/test_MatheSpiele.c index 41259c4..463e47c 100644 --- a/build/test/preprocess/files/test_MatheSpiele.c +++ b/build/test/preprocess/files/test_MatheSpiele.c @@ -28,20 +28,10 @@ void test_convertToDogYears_WhenAgeIsGreaterThanTwo_ShouldReturnExpectedValue(vo int result = convertToDogYears(3); - UnityAssertFloatsWithin((UNITY_FLOAT)((UNITY_FLOAT)((25.0)) * (UNITY_FLOAT)(0.00001f)), (UNITY_FLOAT)((UNITY_FLOAT)((25.0))), (UNITY_FLOAT)((UNITY_FLOAT)((result))), (( + UnityAssertEqualNumber((UNITY_INT)((24)), (UNITY_INT)((result)), ( ((void *)0) - )), (UNITY_UINT)((UNITY_UINT)(17))); - - - - result = convertToDogYears(5); - - UnityAssertFloatsWithin((UNITY_FLOAT)((UNITY_FLOAT)((37.0)) * (UNITY_FLOAT)(0.00001f)), (UNITY_FLOAT)((UNITY_FLOAT)((37.0))), (UNITY_FLOAT)((UNITY_FLOAT)((result))), (( - - ((void *)0) - - )), (UNITY_UINT)((UNITY_UINT)(20))); + ), (UNITY_UINT)(17), UNITY_DISPLAY_STYLE_INT); } diff --git a/build/test/results/test_MatheSpiele.fail b/build/test/results/test_MatheSpiele.pass similarity index 64% rename from build/test/results/test_MatheSpiele.fail rename to build/test/results/test_MatheSpiele.pass index 26df7c4..db2b772 100644 --- a/build/test/results/test_MatheSpiele.fail +++ b/build/test/results/test_MatheSpiele.pass @@ -2,17 +2,17 @@ :source: :path: test :file: test_MatheSpiele.c -:successes: [] -:failures: +:successes: - :test: test_convertToDogYears_WhenAgeIsGreaterThanTwo_ShouldReturnExpectedValue - :line: 20 - :message: Expected 37 Was 33 + :line: 15 + :message: '' :unity_test_time: 0 +:failures: [] :ignores: [] :counts: :total: 1 - :passed: 0 - :failed: 1 + :passed: 1 + :failed: 0 :ignored: 0 :stdout: [] -:time: 0.5896477000023879 +:time: 0.853215300001466 diff --git a/src/MatheSpiele.c b/src/MatheSpiele.c index f6fa287..9abd2e0 100644 --- a/src/MatheSpiele.c +++ b/src/MatheSpiele.c @@ -26,9 +26,9 @@ void yearsUntilHundred() { if (yearsRemaining > 0) { printf("Du hast noch %d Jahre, bis du 100 Jahre alt bist.\n", yearsRemaining); } else if (yearsRemaining == 0) { - printf("Glückwunsch, du bist bereits 100 Jahre alt!\n"); + printf("Glueckwunsch, du bist bereits 100 Jahre alt!\n"); } else { - printf("Du bist bereits über 100 Jahre alt!\n"); + printf("Du bist bereits ueber 100 Jahre alt!\n"); } }