Created
October 3, 2010 18:51
-
-
Save unclebob/608811 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Test | |
public void wrapThreeWordsAfterSecondSpace() throws Exception { | |
assertThat(wrap("word word word", 11), equalTo("word word\nword")); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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