Datumsangaben und Uhrzeiten formatieren

11e6580c

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

76 % complete

Suggestions

  • Revise incorrect test CasualDateTimeFormatTest.testCasualDateSingleDigits. The test failed on line 19 when run against a reference implementation:
    AssertionFailedError: expected: <'25. Februar 1> but was: <2025. Februar 1>
  • 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 9 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 7 out of 13 possible bugs in this regard.
  • Testen, dass CasualDateTimeFormat ein «normales» Datum (in der Jahren 2000 – 2099) korrekt formatiert. The test suite already does this partially, but it only detects 1 out of 11 possible bugs in this regard.

Implementation

57 % complete 15 / 20 Tests
  • CasualDateTimeFormatTest.create: Passed
  • CasualDateTimeFormatTest.testCasalDateLessThanFourDigits: Failed
  • CasualDateTimeFormatTest.testCasualDateMonths: Failed
  • CasualDateTimeFormatTest.testCasualDateNot2000: Failed
  • CasualDateTimeFormatTest.testCasualDateSingleDigits: Passed
  • CasualDateTimeFormatTest.testCasualTime: Passed
  • CasualDateTimeFormatTest.testCasualTimeOver12: Passed
  • FormalDateTimeFormatTest.create: Passed
  • FormalDateTimeFormatTest.testFormalDateNot2000: Passed
  • FormalDateTimeFormatTest.testFormatDateSingleDigits: Passed
  • FormalDateTimeFormatTest.testFormatTime: Passed
  • FormalDateTimeFormatTest.yearLessThanFourDigits: Passed
  • TextFormatterTest.testCasualTime: Passed
  • TextFormatterTest.testFormalTime: Passed
  • TextFormatterTest.testFormatIsEmpty: Passed
  • TextFormatterTest.testFormatText_casual: Failed
  • TextFormatterTest.testFormatText_casual_date: Failed
  • TextFormatterTest.testFormatText_formal: Passed
  • TextFormatterTest.testFormatText_formal_date: Passed
  • TextFormatterTest.testFormatText_invalid: Passed

Other Submissions