Automatischer Zeilenumbruch

a7b5a613

Noah V.

A newer submission is available.

Test Suite

98 % complete

Suggestions

  • 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

81 % complete 10 / 12 Tests
  • brauchtGarKeinWrapping: Passed
  • deleteNewlines: Passed
  • entferneUnnoetigeWrappings: Passed
  • entferneUnnoetigeWrappingsMitNewLineEnding: Passed
  • firstExample: Passed
  • genauEinWrapping: Passed
  • genauEineZeileProWort6: Passed
  • longSingleWordIsNotHardWrapped: Failed
  • returnEmpty: Passed
  • whitespaceExample: Passed
  • wrapExactlyOnceAtWordBoundaryLimit: Failed
  • wrapExactlyOnceWhenNextWordWouldOverflow: Passed

Other Submissions