Browse Source

refactoring: ü zu ue

remotes/origin/factorialdev
Lennart Goetze 11 months ago
parent
commit
5d1617f3c9
  1. 14
      build/test/cache/test_MatheSpiele.c
  2. BIN
      build/test/out/c/MatheSpiele.o
  3. BIN
      build/test/out/c/test_MatheSpiele.o
  4. BIN
      build/test/out/test_MatheSpiele.out
  5. 14
      build/test/preprocess/files/test_MatheSpiele.c
  6. 14
      build/test/results/test_MatheSpiele.pass
  7. 4
      src/MatheSpiele.c

14
build/test/cache/test_MatheSpiele.c

@ -28,20 +28,10 @@ void test_convertToDogYears_WhenAgeIsGreaterThanTwo_ShouldReturnExpectedValue(vo
int result = convertToDogYears(3); 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) ((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);
} }

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

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

BIN
build/test/out/test_MatheSpiele.out

14
build/test/preprocess/files/test_MatheSpiele.c

@ -28,20 +28,10 @@ void test_convertToDogYears_WhenAgeIsGreaterThanTwo_ShouldReturnExpectedValue(vo
int result = convertToDogYears(3); 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) ((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);
} }

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

@ -2,17 +2,17 @@
:source: :source:
:path: test :path: test
:file: test_MatheSpiele.c :file: test_MatheSpiele.c
:successes: []
:failures:
:successes:
- :test: test_convertToDogYears_WhenAgeIsGreaterThanTwo_ShouldReturnExpectedValue - :test: test_convertToDogYears_WhenAgeIsGreaterThanTwo_ShouldReturnExpectedValue
:line: 20
:message: Expected 37 Was 33
: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.5896477000023879
:time: 0.853215300001466

4
src/MatheSpiele.c

@ -26,9 +26,9 @@ void yearsUntilHundred() {
if (yearsRemaining > 0) { if (yearsRemaining > 0) {
printf("Du hast noch %d Jahre, bis du 100 Jahre alt bist.\n", yearsRemaining); printf("Du hast noch %d Jahre, bis du 100 Jahre alt bist.\n", yearsRemaining);
} else if (yearsRemaining == 0) { } else if (yearsRemaining == 0) {
printf("Glückwunsch, du bist bereits 100 Jahre alt!\n");
printf("Glueckwunsch, du bist bereits 100 Jahre alt!\n");
} else { } else {
printf("Du bist bereits über 100 Jahre alt!\n");
printf("Du bist bereits ueber 100 Jahre alt!\n");
} }
} }

Loading…
Cancel
Save