From 92a9662671222bd5c70dcb6e62f00b5c69db7555 Mon Sep 17 00:00:00 2001 From: Jeremy Wu Date: Fri, 4 Nov 2022 22:38:38 +1100 Subject: [PATCH] add testing for tail end string match --- Flow.Launcher.Test/FuzzyMatcherTest.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Flow.Launcher.Test/FuzzyMatcherTest.cs b/Flow.Launcher.Test/FuzzyMatcherTest.cs index d489b8104..46c848c7a 100644 --- a/Flow.Launcher.Test/FuzzyMatcherTest.cs +++ b/Flow.Launcher.Test/FuzzyMatcherTest.cs @@ -288,6 +288,7 @@ namespace Flow.Launcher.Test [TestCase("red", "this red colour", "this colour red")] [TestCase("red", "this red colour", "this colour is very red")] [TestCase("red", "this red colour", "this colour is surprisingly super awesome red and cool")] + [TestCase("red", "this colour is surprisingly super red very and cool", "this colour is surprisingly super very red and cool")] public void WhenGivenTwoStrings_Scoring_ShouldGiveMoreWeightToTheStringCloserToIndexZero( string queryString, string compareString1, string compareString2) {