File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
33using System . Collections . Generic ;
44using 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 {
You can’t perform that action at this time.
0 commit comments