Automatischer Zeilenumbruch

b28760c3

Noah V.

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

90 % complete

Suggestions

  • Revise incorrect test longSingleWordIsHardWrappedIfAlone. The test failed on line 139 when run against a reference implementation:
    AssertionFailedError: expected: <abcdefghij klmno> but was: <abcdefghijklmno>
  • Den Fall testen, dass der Text genau einmal umgebrochen werden muss. The test suite already does this partially, but it only detects 7 out of 8 possible bugs in this regard.

Implementation

82 % complete 11 / 12 Tests
  • brauchtGarKeinWrapping: Passed
  • deleteNewlines: Passed
  • entferneUnnoetigeWrappings: Passed
  • entferneUnnoetigeWrappingsMitNewLineEnding: Passed
  • exactlyOneWrapWhenSecondWordDoesNotFit: Failed
  • firstExample: Passed
  • genauEinWrapping: Passed
  • genauEineZeileProWort6: Passed
  • longSingleWordIsHardWrappedIfAlone: Passed
  • returnEmpty: Passed
  • whitespaceExample: Passed
  • wrapExactlyOnceWhenNextWordWouldOverflow: Passed

Other Submissions