Skip to content

Commit 8793a05

Browse files
authored
word-count: Add test for multiple whitespace (#1023)
* Add test for multiple whitespace
1 parent 7e1cc72 commit 8793a05

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

exercises/word-count/canonical-data.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,15 @@
111111
"large": 2,
112112
"and": 1
113113
}
114+
},
115+
{
116+
"description": "multiple spaces not detected as a word",
117+
"property": "countwords",
118+
"input": " multiple whitespaces",
119+
"expected": {
120+
"multiple": 1,
121+
"whitespaces": 1
122+
}
114123
}
115124
]
116125
}

0 commit comments

Comments
 (0)