Skip to content

Instantly share code, notes, and snippets.

@unclebob
Created October 3, 2010 20:13
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/608884 to your computer and use it in GitHub Desktop.
Save unclebob/608884 to your computer and use it in GitHub Desktop.
public static class DegenerateTests {
@Test
public void wrap_EmptyString_ShouldBeEmpty() throws Exception {
assertThat(wrap("", 1), equalTo(""));
}
@Test
public void stringShorterThanColDoesNotWrap() throws Exception {
assertThat(wrap("word", 10), equalTo("word"));
}
}
public class Wrapper {
public static String wrap(String s, int col) {
return s;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment