Datumsangaben und Uhrzeiten formatieren

6bbfd6fc

Lukas 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

75 % complete

Suggestions

  • Revise incorrect test FormalDateTimeFormatTest.formatDate. The test failed on line 18 when run against a reference implementation:
    AssertionFailedError: expected: <01.01.1> but was: <01.01.0001>
  • Revise incorrect test TextFormatterTest.noValidFormat. The test failed on line 83 when run against a reference implementation:
    NoSuchElementException:
  • Testen, dass FormalDateTimeFormat ein Datum auch dann korrekt formatiert, wenn das Jahr weniger als vier Ziffern hat.
  • 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.

Implementation

50 % complete 8 / 12 Tests
  • CasualDateTimeFormatTest.formatDateOtherCentury: Failed
  • CasualDateTimeFormatTest.formatDateSimple: Failed
  • CasualDateTimeFormatTest.formateTime: Passed
  • CasualDateTimeFormatTest.implementsInterface: Passed
  • FormalDateTimeFormatTest.formatDate: Passed
  • FormalDateTimeFormatTest.formateTime: Passed
  • FormalDateTimeFormatTest.implementsInterface: Passed
  • TextFormatterTest.formatBoth: Failed
  • TextFormatterTest.formatDate: Failed
  • TextFormatterTest.formatTime: Passed
  • TextFormatterTest.noValidFormat: Passed
  • TextFormatterTest.returnOriginalText: Passed

Other Submissions