Datumsangaben und Uhrzeiten formatieren

07659ec4

Baris T.

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

33 % complete

Suggestions

  • Revise incorrect test TextFormatterTest.testCasual. The test failed on line 22 when run against a reference implementation:
    AssertionFailedError: expected: <Kickoff am 24. Juni '24. Beginn: 9 Uhr, Ende: 14 Uhr 30.> but was: <Kickoff am ${2024 06 24}. Beginn: ${9 0}, Ende: ${14 30}.>
  • Revise incorrect test TextFormatterTest.testFormal. The test failed on line 14 when run against a reference implementation:
    AssertionFailedError: expected: <Kickoff am 2024-06-24. Beginn: 09:00, Ende: 14:30.> but was: <Kickoff am ${2024 06 24}. Beginn: ${9 0}, Ende: ${14 30}.>
  • Testen, dass FormalDateTimeFormat ein Datum auch dann korrekt formatiert, wenn das Jahr weniger als vier Ziffern hat.
  • Testen, dass das Resultat von CasualDateTimeFormat.formatDate den korrekten Monatsnamen enthält. The test suite already does this partially, but it only detects 4 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 9 out of 11 possible bugs in this regard.

Implementation

16 % complete 3 / 6 Tests
  • CasualDateTimeFormatTest.testFormatDate: Failed
  • CasualDateTimeFormatTest.testFormatTime: Passed
  • FormalDateTimeFormatTest.testFormatDate: Passed
  • FormalDateTimeFormatTest.testFormatTime: Passed
  • TextFormatterTest.testCasual: Failed
  • TextFormatterTest.testFormal: Failed

Other Submissions