Datumsangaben und Uhrzeiten formatieren

093ef028

Volkan S.

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

40 % complete

Suggestions

  • Revise incorrect test CasualDateTimeFormatTest.testFormatDate_outside2000s. The test failed on line 18 when run against a reference implementation:
    AssertionFailedError: expected: <12. Juli 1999> but was: <1999. Juli 12>
  • Revise incorrect test CasualDateTimeFormatTest.testFormatDate_within2000s. The test failed on line 11 when run against a reference implementation:
    AssertionFailedError: expected: <24. Juni '24> but was: <2024. Juni 24>
  • Revise incorrect test FormalDateTimeFormatTest.testFormatDate_doubleDigits. The test failed on line 17 when run against a reference implementation:
    AssertionFailedError: expected: <24.12.2024> but was: <2024.12.0024>
  • Revise incorrect test FormalDateTimeFormatTest.testFormatDate_singleDigits. The test failed on line 11 when run against a reference implementation:
    AssertionFailedError: expected: <01.02.2024> but was: <2024.02.0001>
  • 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 3 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

27 % complete 6 / 9 Tests
  • CasualDateTimeFormatTest.testFormatDate_outside2000s: Passed
  • CasualDateTimeFormatTest.testFormatDate_within2000s: Passed
  • CasualDateTimeFormatTest.testFormatTime: Passed
  • FormalDateTimeFormatTest.testFormatDate_doubleDigits: Passed
  • FormalDateTimeFormatTest.testFormatDate_singleDigits: Passed
  • FormalDateTimeFormatTest.testFormatTime: Passed
  • TextFormatterTest.testCasualFormat: Failed
  • TextFormatterTest.testFormalFormat: Failed
  • TextFormatterTest.testMultipleFormatsInLine: Failed

Other Submissions