Datumsangaben und Uhrzeiten formatieren

1f8a403e

Volkan S.

A newer submission is available.
Some tests are incorrect: They fail when run against a reference implementation. The test suite score has been reduced.

Test Suite

84 % complete

Suggestions

  • Revise incorrect test CasualDateTimeFormatTest.testFormatTime. The test failed on line 36 when run against a reference implementation:
    AssertionFailedError: expected: <0 Uhr > but was: <0 Uhr>
  • Testen, dass CasualDateTimeFormat eine Uhrzeit mit ganzen Stunden korrekt formatiert. The test suite already does this partially, but it only detects 1 out of 3 possible bugs in this regard.
  • Testen, dass das Ersetzen in TextFormatter.format auch funktioniert, wenn ein Datum oder eine Zeit ganz am Anfang eines Texts steht. The test suite already does this partially, but it only detects 1 out of 3 possible bugs in this regard.

Implementation

84 % complete 12 / 12 Tests
  • CasualDateTimeFormatTest.testFormatDateOutside2000s: Passed
  • CasualDateTimeFormatTest.testFormatDateWithin2000s: Passed
  • CasualDateTimeFormatTest.testFormatDate_allMonthNames: Passed
  • CasualDateTimeFormatTest.testFormatTime: Passed
  • FormalDateTimeFormatTest.testFormatDate_doubleDigits: Passed
  • FormalDateTimeFormatTest.testFormatDate_shortYear: Passed
  • FormalDateTimeFormatTest.testFormatDate_singleDigits: Passed
  • FormalDateTimeFormatTest.testFormatTime: Passed
  • TextFormatterTest.testCasualFormat: Passed
  • TextFormatterTest.testEmptyInput: Passed
  • TextFormatterTest.testFormalFormat: Passed
  • TextFormatterTest.testMultipleFormatsInLine: Passed

Other Submissions