Datumsangaben und Uhrzeiten formatieren

c59cf403

Diego 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.

Test Suite

4 % complete

Suggestions

  • Revise incorrect test formats_valid_dates(int, int, int, java.lang.String). The test failed on line 26 when run against a reference implementation:
    AssertionFailedError: expected: <05.11.934> but was: <05.11.0934>
  • Revise incorrect test rejects_invalid_day(int, int, int). The test failed on line 46 when run against a reference implementation:
    AssertionFailedError: Expected java.lang.IllegalArgumentException to be thrown, but nothing was thrown.
  • Revise incorrect test rejects_invalid_month(int, int, int). The test failed on line 32 when run against a reference implementation:
    AssertionFailedError: Expected java.lang.IllegalArgumentException to be thrown, but nothing was thrown.
  • Revise incorrect test rejects_invalid_time(int, int). The test failed on line 68 when run against a reference implementation:
    AssertionFailedError: Expected java.lang.IllegalArgumentException to be thrown, but nothing was thrown.
  • Testen, dass man ein FormalDateTimeFormat-Objekt erstellen kann und die Methoden formatDate und formatTime vorhanden sind. The test suite already does this partially, but it only detects 6 out of 8 possible bugs in this regard.
  • Testen, dass FormalDateTimeFormat ein Datum korrekt formatiert, zumindest für den einfachsten Fall. The test suite already does this partially, but it only detects 1 out of 8 possible bugs in this regard.
  • Testen, dass FormalDateTimeFormat ein Datum auch dann korrekt formatiert, wenn das Jahr weniger als vier Ziffern hat.

Implementation

4 % complete 5 / 5 Tests
  • formats_valid_dates(int, int, int, java.lang.String): Passed
  • rejects_invalid_month(int, int, int): Passed
  • rejects_invalid_day(int, int, int): Passed
  • formats_valid_time(int, int, java.lang.String): Passed
  • rejects_invalid_time(int, int): Passed

Other Submissions