X-Git-Url: http://git.lukelau.me/?p=lsp-test.git;a=blobdiff_plain;f=test%2FTest.hs;h=377bb6d1f15fdedc36c3669e13263d2909322ab9;hp=0fc2f53f73d2511b480a83b7ef770e83ba9acba9;hb=ae9d99b56df5468816e476059f59537da18fab9c;hpb=14c48f727d1c049f33cd9b3e1e485a6ae1d6f574 diff --git a/test/Test.hs b/test/Test.hs index 0fc2f53..377bb6d 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