Skip to content

Commit 633f8b5

Browse files
karen-palsshine
authored andcommitted
word-count: Sync test to 1.4.0 (#858)
Add test case for substrings from the beginning of words Bump version for word-count from 1.3.0.7 to 1.4.0.8. See exercism/problem-specifications#1557 for full details.
1 parent 8492712 commit 633f8b5

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

exercises/word-count/package.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: word-count
2-
version: 1.3.0.7
2+
version: 1.4.0.8
33

44
dependencies:
55
- base

exercises/word-count/test/Tests.hs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,17 @@ cases = [ Case { description = "count one word"
101101
, ("large" , 2)
102102
, ("and" , 1) ]
103103
}
104+
, Case { description = "substrings from the beginning"
105+
, input = "Joe can't tell between app, apple and a"
106+
, expected = [ ("joe" , 1)
107+
, ("can't" , 1)
108+
, ("tell" , 1)
109+
, ("between", 1)
110+
, ("app" , 1)
111+
, ("apple" , 1)
112+
, ("and" , 1)
113+
, ("a" , 1) ]
114+
}
104115
, Case { description = "multiple spaces not detected as a word"
105116
, input = " multiple whitespaces"
106117
, expected = [ ("multiple" , 1)

0 commit comments

Comments
 (0)