Automatischer Zeilenumbruch

aa5eb500

Yanick 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

90 % complete

Suggestions

  • Revise incorrect test testFirstLineExactlyMaxLength. The test failed on line 81 when run against a reference implementation:
    AssertionFailedError: expected: <1234567890 1234 5 Rest> but was: <1234567890 12345 Rest>

Implementation

82 % complete 10 / 11 Tests
  • testAlmostTooLongOneBreak: Passed
  • testBreakAfterExactlyMaxLengthWord: Passed
  • testExactlyMaxLengthWithSpaceBreak: Passed
  • testFirstLineExactlyMaxLength: Failed
  • testRemoveExtraWhitespaceAndLinebreaks: Passed
  • testSingleCharacterBreak: Passed
  • testSingleLineBreakOnlyOnce: Passed
  • testSingleWordThatExactlyFillsLine: Passed
  • testTwoWordsExactFit: Passed
  • testWrapEmptyText: Passed
  • testWrappingToLineLength: Passed

Other Submissions