Skip to content

Commit b88adb8

Browse files
Bugfix test combinator.
(This one got broken when the hspec combinators like shouldNotSatisfy were replaced with (@?).)
1 parent 5b774f6 commit b88adb8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/functional/Completion.hs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,8 @@ contextTests = testGroup "contexts" [
390390
]
391391
where
392392
compls `shouldContainCompl` x =
393-
null (filter ((== x) . (^. label)) compls) @? "Should contain completion"
393+
any ((== x) . (^. label)) compls
394+
@? "Should contain completion: " ++ show x
394395
compls `shouldNotContainCompl` x =
395-
null (filter ((== x) . (^. label)) compls) @? "Should not contain completion"
396+
all ((/= x) . (^. label)) compls
397+
@? "Should not contain completion: " ++ show x

0 commit comments

Comments
 (0)