Datumsangaben und Uhrzeiten formatieren

417f0ba9

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

55 % complete

Suggestions

  • Revise incorrect test CasualDateTimeFormatTest.testCasualDateMonths. The test failed on line 33 when run against a reference implementation:
    AssertionFailedError: expected: <1. Februar '25> but was: <2025. Februar 1>
  • Revise incorrect test CasualDateTimeFormatTest.testCasualDateNot2000. The test failed on line 28 when run against a reference implementation:
    AssertionFailedError: expected: <1. Februar 1999> but was: <1999. Februar 1>
  • Revise incorrect test CasualDateTimeFormatTest.testCasualDateSingleDigits. The test failed on line 17 when run against a reference implementation:
    AssertionFailedError: expected: <1. Februar '25> but was: <2025. Februar 1>
  • Revise incorrect test TextFormatterTest.testFormatText_casual_date. The test failed on line 52 when run against a reference implementation:
    AssertionFailedError: expected: <Am 25. Juni '25> but was: <Am 2025. Juni 25>
  • 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 6 out of 11 possible bugs in this regard.
  • Testen, dass das Resultat von CasualDateTimeFormat.formatDate den korrekten Monatsnamen enthält.
  • Testen, dass CasualDateTimeFormat ein «normales» Datum (in der Jahren 2000 – 2099) korrekt formatiert.

Implementation

55 % 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