@@ -18,6 +18,7 @@ public class FuzzyMatcherTest
18
18
private const string LastIsChrome = "Last is chrome" ;
19
19
private const string OneOneOneOne = "1111" ;
20
20
private const string MicrosoftSqlServerManagementStudio = "Microsoft SQL Server Management Studio" ;
21
+ private const string VisualStudioCode = "Visual Studio Code" ;
21
22
22
23
public List < string > GetSearchStrings ( )
23
24
=> new List < string >
@@ -122,13 +123,13 @@ public void WhenGivenStringsAndAppliedPrecisionFilteringThenShouldReturnGreaterT
122
123
}
123
124
}
124
125
125
- [ TestCase ( Chrome , Chrome , 137 ) ]
126
- [ TestCase ( Chrome , LastIsChrome , 83 ) ]
126
+ [ TestCase ( Chrome , Chrome , 157 ) ]
127
+ [ TestCase ( Chrome , LastIsChrome , 103 ) ]
127
128
[ TestCase ( Chrome , HelpCureHopeRaiseOnMindEntityChrome , 21 ) ]
128
129
[ TestCase ( Chrome , UninstallOrChangeProgramsOnYourComputer , 15 ) ]
129
130
[ TestCase ( Chrome , CandyCrushSagaFromKing , 0 ) ]
130
131
[ TestCase ( "sql" , MicrosoftSqlServerManagementStudio , 56 ) ]
131
- [ TestCase ( "sql manag" , MicrosoftSqlServerManagementStudio , 79 ) ] //double spacing intended
132
+ [ TestCase ( "sql manag" , MicrosoftSqlServerManagementStudio , 99 ) ] //double spacing intended
132
133
public void WhenGivenQueryStringThenShouldReturnCurrentScoring ( string queryString , string compareString , int expectedScore )
133
134
{
134
135
// When, Given
@@ -195,6 +196,9 @@ public void WhenGivenDesiredPrecisionThenShouldReturnAllResultsGreaterOrEqual(
195
196
[ TestCase ( "ch r" , "Change settings for text-to-speech and for speech recognition (if installed)." , StringMatcher . SearchPrecisionScore . Regular , true ) ]
196
197
[ TestCase ( "a test" , "This is a test" , StringMatcher . SearchPrecisionScore . Regular , true ) ]
197
198
[ TestCase ( "test" , "This is a test" , StringMatcher . SearchPrecisionScore . Regular , true ) ]
199
+ [ TestCase ( "cod" , VisualStudioCode , StringMatcher . SearchPrecisionScore . Regular , true ) ]
200
+ [ TestCase ( "code" , VisualStudioCode , StringMatcher . SearchPrecisionScore . Regular , true ) ]
201
+ [ TestCase ( "codes" , "Visual Studio Codes" , StringMatcher . SearchPrecisionScore . Regular , true ) ]
198
202
public void WhenGivenQueryShouldReturnResultsContainingAllQuerySubstrings (
199
203
string queryString ,
200
204
string compareString ,
0 commit comments