Skip to content

Commit 00dde79

Browse files
Merge pull request #1308 from robkeim/update-canonical-data
Update canonical data to latest version
2 parents cc357d1 + b96e30d commit 00dde79

1 file changed

Lines changed: 19 additions & 1 deletion

File tree

exercises/word-count/WordCountTest.cs

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// This file was auto-generated based on version 1.3.0 of the canonical data.
1+
// This file was auto-generated based on version 1.4.0 of the canonical data.
22

33
using System.Collections.Generic;
44
using Xunit;
@@ -141,6 +141,24 @@ public void With_quotations()
141141
Assert.Equal(expected, actual);
142142
}
143143

144+
[Fact(Skip = "Remove to run test")]
145+
public void Substrings_from_the_beginning()
146+
{
147+
var actual = WordCount.CountWords("Joe can't tell between app, apple and a.");
148+
var expected = new Dictionary<string, int>
149+
{
150+
["joe"] = 1,
151+
["can't"] = 1,
152+
["tell"] = 1,
153+
["between"] = 1,
154+
["app"] = 1,
155+
["apple"] = 1,
156+
["and"] = 1,
157+
["a"] = 1
158+
};
159+
Assert.Equal(expected, actual);
160+
}
161+
144162
[Fact(Skip = "Remove to run test")]
145163
public void Multiple_spaces_not_detected_as_a_word()
146164
{

0 commit comments

Comments
 (0)