6bbfd6fc Aug 4, 2025, 8:28:05 AM (UTC)
Lukas H.
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
75 % complete
Suggestions
-
Revise incorrect test
FormalDateTimeFormatTest.formatDate. The test failed on line 18 when run against a reference implementation:AssertionFailedError: expected: <01.01.1> but was: <01.01.0001> -
Revise incorrect test
TextFormatterTest.noValidFormat. The test failed on line 83 when run against a reference implementation:NoSuchElementException: -
Testen, dass
FormalDateTimeFormatein Datum auch dann korrekt formatiert, wenn das Jahr weniger als vier Ziffern hat. -
Testen, dass
CasualDateTimeFormatauch Daten ausserhalb der Jahre 2000 – 2099 korrekt formatiert. The test suite already does this partially, but it only detects 2 out of 5 possible bugs in this regard.
Implementation
50 % complete
8 / 12 Tests
- CasualDateTimeFormatTest.formatDateOtherCentury: Failed
- CasualDateTimeFormatTest.formatDateSimple: Failed
- CasualDateTimeFormatTest.formateTime: Passed
- CasualDateTimeFormatTest.implementsInterface: Passed
- FormalDateTimeFormatTest.formatDate: Passed
- FormalDateTimeFormatTest.formateTime: Passed
- FormalDateTimeFormatTest.implementsInterface: Passed
- TextFormatterTest.formatBoth: Failed
- TextFormatterTest.formatDate: Failed
- TextFormatterTest.formatTime: Passed
- TextFormatterTest.noValidFormat: Passed
- TextFormatterTest.returnOriginalText: Passed