Datumsangaben und Uhrzeiten formatieren

b4d01adc

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

72 % complete

Suggestions

  • Revise incorrect test CasualDateTimeFormatTest.testDatesFrom2000To2099AreShortened. The test failed on line 59 when run against a reference implementation:
    AssertionFailedError: expected: <1. Januar '00> but was: <2000. Januar 1>
  • Revise incorrect test CasualDateTimeFormatTest.testYearsOutside2000to2099RemainFull. The test failed on line 74 when run against a reference implementation:
    AssertionFailedError: expected: <1. Januar 1999> but was: <1999. Januar 1>
  • 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.
  • Testen, dass CasualDateTimeFormat ein «normales» Datum (in der Jahren 2000 – 2099) korrekt formatiert. The test suite already does this partially, but it only detects 1 out of 11 possible bugs in this regard.

Implementation

55 % complete 16 / 21 Tests
  • CasualDateTimeFormatTest.create: Passed
  • CasualDateTimeFormatTest.testCasalDateLessThanFourDigits: Failed
  • CasualDateTimeFormatTest.testCasualDateMonths: Failed
  • CasualDateTimeFormatTest.testCasualDateNot2000: Failed
  • CasualDateTimeFormatTest.testCasualDateSingleDigits: Failed
  • CasualDateTimeFormatTest.testCasualTime: Passed
  • CasualDateTimeFormatTest.testCasualTimeOver12: Passed
  • CasualDateTimeFormatTest.testDatesFrom2000To2099AreShortened: Passed
  • CasualDateTimeFormatTest.testYearsOutside2000to2099RemainFull: 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: Passed
  • TextFormatterTest.testFormatText_invalid: Passed

Other Submissions