Automatischer Zeilenumbruch

2b613d4b

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

73 % complete

Suggestions

  • Revise incorrect test longerThanMax. The test failed on line 79 when run against a reference implementation:
    AssertionFailedError: expected: <null> but was: <Dies ist ein Text, der in mehrere Zeilen umgebrochen wird.>
  • 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.
  • Testen, dass bereits vorhandene Zeilenumbrüche im Text eliminiert werden.

Implementation

73 % complete 8 / 8 Tests
  • longerThanMax: Passed
  • testEmptyString: Passed
  • testExactLineLength: Passed
  • testMultipleSpaces: Passed
  • testNormalWrap: Passed
  • testSingleWordShorterThanLineLength: Passed
  • testWordLongerThanLineLength: Passed
  • testWrapWithMultipleLines: Passed

Other Submissions