Skip to content

Commit c363b9a

Browse files
committed
update tests for string matcher
we expect the score to change since we updated the logic for calculating the distance from the first match
1 parent b0ec137 commit c363b9a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Flow.Launcher.Test/FuzzyMatcherTest.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,12 @@ public void WhenGivenStringsAndAppliedPrecisionFilteringThenShouldReturnGreaterT
124124
}
125125

126126
[TestCase(Chrome, Chrome, 157)]
127-
[TestCase(Chrome, LastIsChrome, 103)]
128-
[TestCase(Chrome, HelpCureHopeRaiseOnMindEntityChrome, 21)]
129-
[TestCase(Chrome, UninstallOrChangeProgramsOnYourComputer, 15)]
127+
[TestCase(Chrome, LastIsChrome, 147)]
128+
[TestCase(Chrome, HelpCureHopeRaiseOnMindEntityChrome, 25)]
129+
[TestCase(Chrome, UninstallOrChangeProgramsOnYourComputer, 21)]
130130
[TestCase(Chrome, CandyCrushSagaFromKing, 0)]
131-
[TestCase("sql", MicrosoftSqlServerManagementStudio, 56)]
132-
[TestCase("sql manag", MicrosoftSqlServerManagementStudio, 99)]//double spacing intended
131+
[TestCase("sql", MicrosoftSqlServerManagementStudio, 110)]
132+
[TestCase("sql manag", MicrosoftSqlServerManagementStudio, 121)]//double spacing intended
133133
public void WhenGivenQueryStringThenShouldReturnCurrentScoring(string queryString, string compareString, int expectedScore)
134134
{
135135
// When, Given

0 commit comments

Comments
 (0)