Datumsangaben und Uhrzeiten formatieren

dc2ae14a

Dario H.

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

66 % complete

Suggestions

  • Revise incorrect test CasualDateTimeFormatTest.Date. The test failed on line 23 when run against a reference implementation:
    AssertionFailedError: expected: <24. Juni 0990> but was: <24. Juni 990>
  • Revise incorrect test FormalDateTimeFormatTest.Date. The test failed on line 24 when run against a reference implementation:
    AssertionFailedError: expected: <24.06.990> but was: <24.06.0990>
  • 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

66 % complete 14 / 14 Tests
  • CasualDateTimeFormatTest.Date: Passed
  • CasualDateTimeFormatTest.Time: Passed
  • FormalDateTimeFormatTest.Date: Passed
  • FormalDateTimeFormatTest.Time: Passed
  • TextFormatterTest.dateAndTimeCasual: Passed
  • TextFormatterTest.dateAndTimeFormal: Passed
  • TextFormatterTest.multipleDateAndTimeCasual: Passed
  • TextFormatterTest.multipleDateAndTimeFormal: Passed
  • TextFormatterTest.noDateAndTimeCasual: Passed
  • TextFormatterTest.noDateAndTimeFormal: Passed
  • TextFormatterTest.onlyDateCasual: Passed
  • TextFormatterTest.onlyDateFormal: Passed
  • TextFormatterTest.onlyTimeCasual: Passed
  • TextFormatterTest.onlyTimeFormal: Passed

Other Submissions