Skip to content

Commit a38233c

Browse files
monillemoncurry
authored andcommitted
Update word count version 1.3.0 -> 1.4.0 (exercism#1771)
* Updated version from 1.3.0 to 1.4.0 and added test cases * Closes issue exercism#1731
1 parent 0063246 commit a38233c

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

exercises/word-count/.meta/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.3.0
1+
1.4.0

exercises/word-count/src/test/java/WordCountTest.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,24 @@ public void withApostrophes() {
140140
);
141141
}
142142

143+
@Ignore("Remove to run test")
144+
@Test
145+
public void substringsFromTheBeginning() {
146+
expectedWordCount.put("joe", 1);
147+
expectedWordCount.put("can't", 1);
148+
expectedWordCount.put("tell", 1);
149+
expectedWordCount.put("between", 1);
150+
expectedWordCount.put("app", 1);
151+
expectedWordCount.put("apple", 1);
152+
expectedWordCount.put("and", 1);
153+
expectedWordCount.put("a", 1);
154+
155+
actualWordCount = wordCount.phrase("Joe can't tell between app, apple and a.");
156+
assertEquals(
157+
expectedWordCount, actualWordCount
158+
);
159+
}
160+
143161
@Ignore("Remove to run test")
144162
@Test
145163
public void withQuotations() {

0 commit comments

Comments
 (0)