We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e9fda53 commit ebee93cCopy full SHA for ebee93c
ghcide-test/exe/FuzzySearch.hs
@@ -29,7 +29,7 @@ tests =
29
]
30
31
32
-test :: Text -> Bool
+test :: Text -> Property
33
test candidate = do
34
let previous =
35
catMaybes
@@ -38,7 +38,7 @@ test candidate = do
38
| d <- dictionary
39
40
new = catMaybes [(d,) <$> match candidate d | d <- dictionary]
41
- previous == new
+ previous === new
42
43
propLegit :: Property
44
propLegit = forAll (elements dictionary) test
@@ -91,7 +91,7 @@ referenceImplementation :: forall s t.
91
referenceImplementation pat' t pre post extract =
92
if null pat then Just (Fuzzy t result totalScore) else Nothing
93
where
94
- null :: (T.TextualMonoid s) => s -> Bool
+ null :: s -> Bool
95
null = not . T.any (const True)
96
97
s = extract t
0 commit comments