Merge pull request #32 from fendor/tdr-test-impls
[lsp-test.git] / test / Test.hs
index 2372cbefff91ebf9c2b6004a301d6cab0a1e5f63..380c98b90aedf2c9c498ed3f1539d010edeafc15 100644 (file)
@@ -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