We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 548ab88 commit cbfe71aCopy full SHA for cbfe71a
ghcide/test/exe/TestUtils.hs
@@ -290,7 +290,7 @@ checkDefs (defToLocation -> defs) mkExpectations = traverse_ check =<< mkExpecta
290
291
assertOneDefinitionFound :: [Location] -> Session Location
292
assertOneDefinitionFound [def] = pure def
293
- assertOneDefinitionFound _ = liftIO $ assertFailure "Expecting exactly one definition"
+ assertOneDefinitionFound xs = liftIO . assertFailure $ "Expecting exactly one definition, got " <> show (length xs)
294
295
assertRangeCorrect Location{_range = foundRange} expectedRange =
296
liftIO $ expectedRange @=? foundRange
0 commit comments