Datumsangaben und Uhrzeiten formatieren

84eff777

Diego M.

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

86 % complete

Suggestions

  • Revise incorrect test TextFormatterTest.replaces_with_casual_year_rule. The test failed on line 33 when run against a reference implementation:
    AssertionFailedError: expected: <Abgabe bis 19.02.24 um 09:05.> but was: <Abgabe bis 19. Februar '24 um 9 Uhr 5>
  • Testen, dass man ein TextFormatter-Objekt erstellen kann, die Methode format vorhanden ist und dass beim Formatieren eines leeren Textes wieder ein leerer Text zurückgegeben wird. The test suite already does this partially, but it only detects 1 out of 2 possible bugs in this regard.
  • Testen, dass das Ersetzen in TextFormatter.format auch funktioniert, wenn ein Datum oder eine Zeit ganz am Anfang eines Texts steht. The test suite already does this partially, but it only detects 1 out of 3 possible bugs in this regard.

Implementation

74 % complete 12 / 14 Tests
  • CasualDateTimeFormatTest.formats_valid_dates(int, int, int, java.lang.String): Passed
  • CasualDateTimeFormatTest.Date: Passed
  • CasualDateTimeFormatTest.casual_formatDate_contains_correct_month_name: Passed
  • CasualDateTimeFormatTest.casual_has_formatDate_and_formatTime_and_is_instantiable: Passed
  • CasualDateTimeFormatTest.formal_formats_year_with_less_than_four_digits_correctly: Passed
  • CasualDateTimeFormatTest.formats_valid_time(int, int, java.lang.String): Passed
  • CasualDateTimeFormatTest.month_names_are_correct_in_range_2000_2099(int, int, java.lang.String): Passed
  • FormalDateTimeFormatTest.formats_simple: Passed
  • FormalDateTimeFormatTest.formats_time: Passed
  • FormalDateTimeFormatTest.formats_valid_dates: Passed
  • TextFormatterTest.keeps_plain_text_unchanged: Passed
  • TextFormatterTest.replaces_date_and_time_formal: Passed
  • TextFormatterTest.replaces_with_casual_year_rule: Failed
  • TextFormatterTest.single_time_with_punctuation: Failed

Other Submissions