Skip to content

Commit ebee93c

Browse files
committed
Use quickcheck === to get more informative errors
1 parent e9fda53 commit ebee93c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: ghcide-test/exe/FuzzySearch.hs

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ tests =
2929
]
3030
]
3131

32-
test :: Text -> Bool
32+
test :: Text -> Property
3333
test candidate = do
3434
let previous =
3535
catMaybes
@@ -38,7 +38,7 @@ test candidate = do
3838
| d <- dictionary
3939
]
4040
new = catMaybes [(d,) <$> match candidate d | d <- dictionary]
41-
previous == new
41+
previous === new
4242

4343
propLegit :: Property
4444
propLegit = forAll (elements dictionary) test
@@ -91,7 +91,7 @@ referenceImplementation :: forall s t.
9191
referenceImplementation pat' t pre post extract =
9292
if null pat then Just (Fuzzy t result totalScore) else Nothing
9393
where
94-
null :: (T.TextualMonoid s) => s -> Bool
94+
null :: s -> Bool
9595
null = not . T.any (const True)
9696

9797
s = extract t

0 commit comments

Comments
 (0)