This commit is contained in:
Shekhar Gulati
2016-08-24 12:56:18 +05:30
parent f635543679
commit 2ae1c02b5d
+6
View File
@@ -942,4 +942,10 @@ public class StrmanTest {
public void isEnclosedBetween_shouldThrowIllegalArgumentExceptionWhenEncloserIsNull() throws Exception {
assertThat(isEnclosedBetween("shekhar", null), is(false));
}
@Test
public void words_shouldConvertTextToWords() throws Exception {
final String line = "This is a string, with words!";
assertThat(words(line), is(new String[]{"This", "is", "a", "string", "with", "words"}));
}
}