Skip to content

Instantly share code, notes, and snippets.

@unclebob
Created October 3, 2010 18:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save unclebob/608811 to your computer and use it in GitHub Desktop.
Save unclebob/608811 to your computer and use it in GitHub Desktop.
@Test
public void wrapThreeWordsAfterSecondSpace() throws Exception {
assertThat(wrap("word word word", 11), equalTo("word word\nword"));
}
java.lang.AssertionError:
Expected: "word word\nword"
got: "word\nword\nword"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment