X-Git-Url: http://git.lukelau.me/?a=blobdiff_plain;f=test%2FTest.hs;h=377bb6d1f15fdedc36c3669e13263d2909322ab9;hb=07287dee784681a0334eae15cd6c158321941b60;hp=0fc2f53f73d2511b480a83b7ef770e83ba9acba9;hpb=d409af913af1a3cae988cb146e6bcfa4b4f1e0c7;p=lsp-test.git 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