Datumsangaben und Uhrzeiten formatieren

1c941341

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

56 % complete

Suggestions

  • Revise incorrect test FormalDateTimeFormatTest.testFormalDateNot2000. The test failed on line 34 when run against a reference implementation:
    AssertionFailedError: expected: <01.02.1999> but was: <1999.02.0001>
  • Revise incorrect test FormalDateTimeFormatTest.testFormatDateSingleDigits. The test failed on line 28 when run against a reference implementation:
    AssertionFailedError: expected: <25.02.2025> but was: <2025.02.0025>
  • 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_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 FormalDateTimeFormat ein Datum auch dann korrekt formatiert, wenn das Jahr weniger als vier Ziffern hat.
  • Testen, dass man ein CasualDateTimeFormat-Objekt erstellen kann und die Methoden formatDate und formatTime vorhanden sind. The test suite already does this partially, but it only detects 9 out of 11 possible bugs in this regard.
  • Testen, dass das Resultat von CasualDateTimeFormat.formatDate den korrekten Monatsnamen enthält. The test suite already does this partially, but it only detects 7 out of 13 possible bugs in this regard.

Implementation

49 % complete 14 / 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: Failed
  • TextFormatterTest.testFormatText_formal: Passed
  • TextFormatterTest.testFormatText_formal_date: Failed
  • TextFormatterTest.testFormatText_invalid: Passed

Other Submissions