[PTRun]Improve fuzzy search for queries (#20064)

* Update StringMatcher.cs

* Update tests

* Remove comment
This commit is contained in:
ivanstosic-janea
2022-09-27 19:17:20 +02:00
committed by GitHub
parent 665851300d
commit bed18a418c
2 changed files with 30 additions and 4 deletions

View File

@@ -156,7 +156,7 @@ namespace Wox.Test
[DataRow("goo", "Google Chrome", StringMatcher.SearchPrecisionScore.Regular, true)]
[DataRow("chr", "Google Chrome", StringMatcher.SearchPrecisionScore.Low, true)]
[DataRow("chr", "Chrome", StringMatcher.SearchPrecisionScore.Regular, true)]
[DataRow("chr", "Help cure hope raise on mind entity Chrome", StringMatcher.SearchPrecisionScore.Regular, false)]
[DataRow("chr", "Help cure hope raise on mind entity Chrome", StringMatcher.SearchPrecisionScore.Regular, true)]
[DataRow("chr", "Help cure hope raise on mind entity Chrome", StringMatcher.SearchPrecisionScore.Low, true)]
[DataRow("chr", "Candy Crush Saga from King", StringMatcher.SearchPrecisionScore.Regular, false)]
[DataRow("chr", "Candy Crush Saga from King", StringMatcher.SearchPrecisionScore.None, true)]
@@ -203,7 +203,7 @@ namespace Wox.Test
[DataRow("mic", MicrosoftSqlServerManagementStudio, StringMatcher.SearchPrecisionScore.Regular, true)]
[DataRow("chr", "Shutdown", StringMatcher.SearchPrecisionScore.Regular, false)]
[DataRow("mssms", MicrosoftSqlServerManagementStudio, StringMatcher.SearchPrecisionScore.Regular, false)]
[DataRow("chr", "Change settings for text-to-speech and for speech recognition (if installed).", StringMatcher.SearchPrecisionScore.Regular, false)]
[DataRow("chr", "Change settings for text-to-speech and for speech recognition (if installed).", StringMatcher.SearchPrecisionScore.Regular, true)]
[DataRow("ch r", "Change settings for text-to-speech and for speech recognition (if installed).", StringMatcher.SearchPrecisionScore.Regular, true)]
[DataRow("a test", "This is a test", StringMatcher.SearchPrecisionScore.Regular, true)]
[DataRow("test", "This is a test", StringMatcher.SearchPrecisionScore.Regular, true)]