Automatischer Zeilenumbruch

c3c3ddde

Dario H.

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

56 % complete

Suggestions

  • Revise incorrect test NoBreakRequired. The test failed on line 38 when run against a reference implementation:
    AssertionFailedError: expected: <Dies ist ein Text, der umgebrochen werden soll.> but was: <Dies ist ein Text.>
  • Revise incorrect test OnlyOneBreak. The test failed on line 30 when run against a reference implementation:
    AssertionFailedError: expected: <Dies ist ein Text, der umgebrochen werden soll.> but was: <Dies ist ein Text.>
  • 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

34 % complete 3 / 5 Tests
  • EliminateBreaks: Passed
  • EliminateSpaces: Passed
  • Empty: Passed
  • NoBreakRequired: Failed
  • OnlyOneBreak: Failed

Other Submissions