Automatischer Zeilenumbruch

2af4e226

Jonas 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

75 % complete

Suggestions

  • Revise incorrect test textEmpty. The test failed on line 95 when run against a reference implementation:
    AssertionFailedError: expected: < > but was: <>
  • Den einfachsten Fall testen.😉 The test suite already does this partially, but it only detects 1 out of 2 possible bugs in this regard.
  • 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

75 % complete 6 / 6 Tests
  • alreadyWrappedText: Passed
  • extraSpacesShouldBeRemoved: Passed
  • normalTextLineLength10: Passed
  • normalTextLineLength20: Passed
  • shortTextFitsInOneLine: Passed
  • textEmpty: Passed

Other Submissions