mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
update tests for string matcher
we expect the score to change since we updated the logic for calculating the distance from the first match
This commit is contained in:
parent
b0ec1375e7
commit
c363b9a5c0
1 changed files with 5 additions and 5 deletions
|
|
@ -124,12 +124,12 @@ namespace Flow.Launcher.Test
|
||||||
}
|
}
|
||||||
|
|
||||||
[TestCase(Chrome, Chrome, 157)]
|
[TestCase(Chrome, Chrome, 157)]
|
||||||
[TestCase(Chrome, LastIsChrome, 103)]
|
[TestCase(Chrome, LastIsChrome, 147)]
|
||||||
[TestCase(Chrome, HelpCureHopeRaiseOnMindEntityChrome, 21)]
|
[TestCase(Chrome, HelpCureHopeRaiseOnMindEntityChrome, 25)]
|
||||||
[TestCase(Chrome, UninstallOrChangeProgramsOnYourComputer, 15)]
|
[TestCase(Chrome, UninstallOrChangeProgramsOnYourComputer, 21)]
|
||||||
[TestCase(Chrome, CandyCrushSagaFromKing, 0)]
|
[TestCase(Chrome, CandyCrushSagaFromKing, 0)]
|
||||||
[TestCase("sql", MicrosoftSqlServerManagementStudio, 56)]
|
[TestCase("sql", MicrosoftSqlServerManagementStudio, 110)]
|
||||||
[TestCase("sql manag", MicrosoftSqlServerManagementStudio, 99)]//double spacing intended
|
[TestCase("sql manag", MicrosoftSqlServerManagementStudio, 121)]//double spacing intended
|
||||||
public void WhenGivenQueryStringThenShouldReturnCurrentScoring(string queryString, string compareString, int expectedScore)
|
public void WhenGivenQueryStringThenShouldReturnCurrentScoring(string queryString, string compareString, int expectedScore)
|
||||||
{
|
{
|
||||||
// When, Given
|
// When, Given
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue