Automatischer Zeilenumbruch

02512aba

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

75 % complete

Suggestions

  • Revise incorrect test assumeHardWrapping. The test failed on line 54 when run against a reference implementation:
    AssertionFailedError: expected: <umgeb roche n werde n soll.> but was: <umgebrochen werden soll.>
  • Ein paar weitere sehr einfache Fälle testen, nämlich wenn der Text genügend kurz ist, dass er gar nicht umgebrochen werden muss. The test suite already does this partially, but it only detects 14 out of 19 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 5 / 5 Tests
  • assumeHardWrapping: Passed
  • deleteNewlines: Passed
  • firstExample: Passed
  • returnEmpty: Passed
  • whitespaceExample: Passed

Other Submissions