X-Git-Url: http://git.lukelau.me/?p=lsp-test.git;a=blobdiff_plain;f=test%2FTest.hs;h=380c98b90aedf2c9c498ed3f1539d010edeafc15;hp=2372cbefff91ebf9c2b6004a301d6cab0a1e5f63;hb=0033204f40889a5ed1736777ffe71d26b7a0d307;hpb=8cd3d41fef5b055ee1c79e6d83858d70c599367b diff --git a/test/Test.hs b/test/Test.hs index 2372cbe..380c98b 100644 --- a/test/Test.hs +++ b/test/Test.hs @@ -319,6 +319,13 @@ main = hspec $ do documentContents doc >>= liftIO . print in sesh `shouldThrow` anyException + describe "satisfy" $ + it "works" $ runSession "hie" fullCaps "test/data" $ do + openDoc "Format.hs" "haskell" + let pred (NotLogMessage _) = True + pred _ = False + void $ satisfy pred + mkRange sl sc el ec = Range (Position sl sc) (Position el ec) didChangeCaps :: ClientCapabilities