Datumsangaben und Uhrzeiten formatieren

6e13253b

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

73 % complete

Suggestions

  • Revise incorrect test CasualDateTimeFormatTest.testFormatDateWithin2000s. The test failed on line 13 when run against a reference implementation:
    AssertionFailedError: expected: <1. Januar 00> but was: <1. Januar '00>
  • Revise incorrect test CasualDateTimeFormatTest.testFormatTime. The test failed on line 36 when run against a reference implementation:
    AssertionFailedError: expected: <0 Uhr > but was: <0 Uhr>
  • 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.
  • Testen, dass CasualDateTimeFormat auch Daten ausserhalb der Jahre 2000 – 2099 korrekt formatiert. The test suite already does this partially, but it only detects 2 out of 5 possible bugs in this regard.
  • Testen, dass CasualDateTimeFormat eine Uhrzeit mit ganzen Stunden korrekt formatiert. The test suite already does this partially, but it only detects 1 out of 3 possible bugs in this regard.

Implementation

67 % complete 11 / 12 Tests
  • CasualDateTimeFormatTest.testFormatDateOutside2000s: Passed
  • CasualDateTimeFormatTest.testFormatDateWithin2000s: Failed
  • CasualDateTimeFormatTest.testFormatDate_allMonthNames: Passed
  • CasualDateTimeFormatTest.testFormatTime: Passed
  • FormalDateTimeFormatTest.testFormatDate_doubleDigits: Passed
  • FormalDateTimeFormatTest.testFormatDate_shortYear: Passed
  • FormalDateTimeFormatTest.testFormatDate_singleDigits: Passed
  • FormalDateTimeFormatTest.testFormatTime: Passed
  • TextFormatterTest.testCasualFormat: Passed
  • TextFormatterTest.testEmptyInput: Passed
  • TextFormatterTest.testFormalFormat: Passed
  • TextFormatterTest.testMultipleFormatsInLine: Passed

Other Submissions