From 2ae1c02b5d34ee72b0feb21d45265783843cc389 Mon Sep 17 00:00:00 2001 From: Shekhar Gulati Date: Wed, 24 Aug 2016 12:56:18 +0530 Subject: [PATCH] Resolved #69 --- src/test/java/strman/StrmanTest.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/test/java/strman/StrmanTest.java b/src/test/java/strman/StrmanTest.java index 54b1a9a..c9f69a3 100644 --- a/src/test/java/strman/StrmanTest.java +++ b/src/test/java/strman/StrmanTest.java @@ -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"})); + } } \ No newline at end of file