Datumsangaben und Uhrzeiten formatieren

0cb0a5bc

Kai M.

A newer submission is available.
Some tests are incorrect: They fail when run against a reference implementation. The test suite score has been reduced.
The code attempted to perform illegal operations, such as accessing system properties or the file system.

Test Suite

71 % complete

Suggestions

  • Revise incorrect test FormalDateTimeFormatTest.testFormatDate2000. The test failed on line 12 when run against a reference implementation:
    AssertionFailedError: expected: <01.01.986> but was: <01.01.0986>
  • 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 7 out of 13 possible bugs in this regard.
  • Testen, dass CasualDateTimeFormat auch Daten ausserhalb der Jahre 2000 – 2099 korrekt formatiert. The test suite already does this partially, but it only detects 3 out of 5 possible bugs in this regard.

Implementation

50 % complete 5 / 7 Tests
  • CasualDateTimeFormatTest.testFormatDate2000: Passed
  • CasualDateTimeFormatTest.testFormatDateNot2000: Passed
  • CasualDateTimeFormatTest.testFormatTime: Passed
  • FormalDateTimeFormatTest.testFormatDate2000: Passed
  • FormalDateTimeFormatTest.testFormatTime: Passed
  • TextFormatterTest.testFormatCasual: Failed
  • TextFormatterTest.testFormatFormal: Failed

Other Submissions