Skip to content

Commit 80d68c3

Browse files
committed
Fix referenceImplementation for FuzzySearch tests
1 parent 8f84997 commit 80d68c3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ghcide-test/exe/FuzzySearch.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ referenceImplementation :: forall s t.
8888
(t -> s) ->
8989
-- | The original value, rendered string and score.
9090
Maybe (Fuzzy t s)
91-
referenceImplementation pat t pre post extract =
91+
referenceImplementation pat' t pre post extract =
9292
if null pat then Just (Fuzzy t result totalScore) else Nothing
9393
where
9494
null :: (T.TextualMonoid s) => s -> Bool
@@ -119,7 +119,7 @@ referenceImplementation pat t pre post extract =
119119
( 0,
120120
1, -- matching at the start gives a bonus (cur = 1)
121121
mempty,
122-
pat,
122+
pat',
123123
True
124124
)
125125
s

ghcide-test/exe/UnitTests.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ tests = do
9999
let msg = printf "Timestamps do not have millisecond resolution: %dus" resolution_us
100100
assertBool msg (resolution_us <= 1000)
101101
, Progress.tests
102-
, ignoreForGhcVersions [GHC912] "Fuzzy search: ignore since referenceImplementation get stuck for ghc912" $ FuzzySearch.tests
102+
, FuzzySearch.tests
103103
]
104104

105105
findResolution_us :: Int -> IO Int

0 commit comments

Comments
 (0)