Datumsangaben und Uhrzeiten formatieren

66cd31ff

Irina P.

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

47 % complete

Suggestions

  • Revise incorrect test FormalDateTimeFormatTest.testFormalDateNot2000. The test failed on line 34 when run against a reference implementation:
    AssertionFailedError: expected: <1999.02.0001> but was: <01.02.1999>
  • Revise incorrect test FormalDateTimeFormatTest.testFormatDateSingleDigits. The test failed on line 28 when run against a reference implementation:
    AssertionFailedError: expected: <2025.02.0025> but was: <25.02.2025>
  • Revise incorrect test FormalDateTimeFormatTest.yearLessThanFourDigits. The test failed on line 40 when run against a reference implementation:
    AssertionFailedError: expected: <01.02.0025> but was: <25.02.0001>
  • Revise incorrect test TextFormatterTest.testFormatText_formal. The test failed on line 15 when run against a reference implementation:
    AssertionFailedError: expected: <Am 2024.06.0024 beginnt um 09:00> but was: <Am 24.06.2024 beginnt um 09:00>
  • Revise incorrect test TextFormatterTest.testFormatText_formal_date. The test failed on line 43 when run against a reference implementation:
    AssertionFailedError: expected: <Am 2025.06.0025> but was: <Am 25.06.2025>
  • 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

47 % complete 16 / 16 Tests
  • CasualDateTimeFormatTest.testCasualDateMonths: Passed
  • CasualDateTimeFormatTest.testCasualDateNot2000: Passed
  • CasualDateTimeFormatTest.testCasualDateSingleDigits: Passed
  • CasualDateTimeFormatTest.testCasualTime: Passed
  • FormalDateTimeFormatTest.create: Passed
  • FormalDateTimeFormatTest.testFormalDateNot2000: Passed
  • FormalDateTimeFormatTest.testFormatDateSingleDigits: Passed
  • FormalDateTimeFormatTest.testFormatTime: Passed
  • FormalDateTimeFormatTest.yearLessThanFourDigits: Passed
  • TextFormatterTest.testCasualTime: Passed
  • TextFormatterTest.testFormalTime: Passed
  • TextFormatterTest.testFormatIsEmpty: Passed
  • TextFormatterTest.testFormatText_casual_date: Passed
  • TextFormatterTest.testFormatText_formal: Passed
  • TextFormatterTest.testFormatText_formal_date: Passed
  • TextFormatterTest.testFormatText_invalid: Passed

Other Submissions