From ef68ccb70a231e823b7ee7555b548a856dba7606 Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Sun, 23 Feb 2025 21:59:35 +0800 Subject: [PATCH] Fix unit test issue --- Flow.Launcher.Infrastructure/StringMatcher.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Flow.Launcher.Infrastructure/StringMatcher.cs b/Flow.Launcher.Infrastructure/StringMatcher.cs index 2707308d5..e85c5d6f4 100644 --- a/Flow.Launcher.Infrastructure/StringMatcher.cs +++ b/Flow.Launcher.Infrastructure/StringMatcher.cs @@ -15,13 +15,18 @@ namespace Flow.Launcher.Infrastructure private readonly IAlphabet _alphabet; - // This is a workaround to allow unit tests to set the instance public StringMatcher(IAlphabet alphabet, Settings settings) { _alphabet = alphabet; UserSettingSearchPrecision = settings.QuerySearchPrecision; } + // This is a workaround to allow unit tests to set the instance + public StringMatcher(IAlphabet alphabet) + { + _alphabet = alphabet; + } + public static MatchResult FuzzySearch(string query, string stringToCompare) { return Ioc.Default.GetRequiredService().FuzzyMatch(query, stringToCompare);