Datumsangaben und Uhrzeiten formatieren

ba79a35f

Baris T.

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

15 % complete

Suggestions

  • Revise incorrect test CasualDateTimeFormatTest.testFormatTime. The test failed on line 20 when run against a reference implementation:
    AssertionFailedError: expected: <9 Uhr 00> but was: <9 Uhr>
  • Revise incorrect test FormalDateTimeFormatTest.testFormatDate. The test failed on line 12 when run against a reference implementation:
    AssertionFailedError: expected: <03.07.999> but was: <03.07.0999>
  • Revise incorrect test TextFormatterTest.testCasual. The test failed on line 22 when run against a reference implementation:
    AssertionFailedError: expected: <Kickoff am 24. Juni '24. Beginn: 9 Uhr, Ende: 14 Uhr 30.> but was: <Kickoff am ${2024 06 24}. Beginn: ${9 0}, Ende: ${14 30}.>
  • Revise incorrect test TextFormatterTest.testFormal. The test failed on line 14 when run against a reference implementation:
    AssertionFailedError: expected: <Kickoff am 2024-06-24. Beginn: 09:00, Ende: 14:30.> but was: <Kickoff am ${2024 06 24}. Beginn: ${9 0}, Ende: ${14 30}.>
  • 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

6 % complete 3 / 7 Tests
  • CasualDateTimeFormatTest.testFormatDate: Passed
  • CasualDateTimeFormatTest.testFormatTime: Failed
  • CasualDateTimeFormatTest.testInterfaceMethodsExist: Passed
  • FormalDateTimeFormatTest.testFormatDate: Failed
  • FormalDateTimeFormatTest.testFormatTime: Passed
  • TextFormatterTest.testCasual: Failed
  • TextFormatterTest.testFormal: Failed

Other Submissions