Datumsangaben und Uhrzeiten formatieren

70b743a6

Irina P.

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

59 % complete

Suggestions

  • Revise incorrect test TextFormatterTest.testFormatText_casual_date. The test failed on line 52 when run against a reference implementation:
    AssertionFailedError: expected: <Am 25. Juni 2025> but was: <Am 25. Juni '25>
  • Testen, dass FormalDateTimeFormat ein Datum auch dann korrekt formatiert, wenn das Jahr weniger als vier Ziffern hat.
  • Testen, dass man ein CasualDateTimeFormat-Objekt erstellen kann und die Methoden formatDate und formatTime vorhanden sind. The test suite already does this partially, but it only detects 7 out of 11 possible bugs in this regard.
  • Testen, dass das Resultat von CasualDateTimeFormat.formatDate den korrekten Monatsnamen enthält. The test suite already does this partially, but it only detects 3 out of 13 possible bugs in this regard.

Implementation

59 % complete 12 / 12 Tests
  • CasualDateTimeFormatTest.testCasualDateNot2000: Passed
  • CasualDateTimeFormatTest.testCasualDateSingleDigits: Passed
  • CasualDateTimeFormatTest.testCasualTime: Passed
  • FormalDateTimeFormatTest.create: Passed
  • FormalDateTimeFormatTest.testFormalDateNot2000: Passed
  • FormalDateTimeFormatTest.testFormatDateSingleDigits: Passed
  • FormalDateTimeFormatTest.testFormatTime: Passed
  • TextFormatterTest.testFormatIsEmpty: Passed
  • TextFormatterTest.testFormatText_casual_date: Passed
  • TextFormatterTest.testFormatText_formal: Passed
  • TextFormatterTest.testFormatText_formal_date: Passed
  • TextFormatterTest.testFormatText_invalid: Passed

Other Submissions