Datumsangaben und Uhrzeiten formatieren

81d00db1

Celine C.

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

38 % complete

Suggestions

  • Revise incorrect test FormalDateTimeFormatTest.testDateFormatting. The test failed on line 13 when run against a reference implementation:
    AssertionFailedError: expected: <02.02.925> but was: <02.02.0925>
  • Revise incorrect test TextFormatterTest.formatsSingleDateWithFormalFormatter. The test failed on line 23 when run against a reference implementation:
    AssertionFailedError: expected: <Das Projekt startet am 04.08.2024.> but was: <Das Projekt startet am 04.08.2024>
  • Testen, dass man ein FormalDateTimeFormat-Objekt erstellen kann und die Methoden formatDate und formatTime vorhanden sind. The test suite already does this partially, but it only detects 6 out of 8 possible bugs in this regard.
  • Testen, dass FormalDateTimeFormat ein Datum korrekt formatiert, zumindest für den einfachsten Fall. The test suite already does this partially, but it only detects 1 out of 8 possible bugs in this regard.
  • Testen, dass FormalDateTimeFormat ein Datum auch dann korrekt formatiert, wenn das Jahr weniger als vier Ziffern hat.

Implementation

38 % complete 6 / 6 Tests
  • CasualDateTimeFormatTest.testDateFormatting: Passed
  • CasualDateTimeFormatTest.testTimeFormatting: Passed
  • FormalDateTimeFormatTest.testDateFormatting: Passed
  • FormalDateTimeFormatTest.testTimeFormatting: Passed
  • TextFormatterTest.formatsSingleDateWithFormalFormatter: Passed
  • TextFormatterTest.returnsTextUnchangedIfNoPlaceholders: Passed

Other Submissions