projects
/
lsp-test.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove stack.yaml.lock
[lsp-test.git]
/
test
/
Test.hs
diff --git
a/test/Test.hs
b/test/Test.hs
index d689bff411e53a6603c9812f46ba62825ebe87c6..342d889f464d73ce9435c56148bc428c5a7844ae 100644
(file)
--- a/
test/Test.hs
+++ b/
test/Test.hs
@@
-238,7
+238,8
@@
main = hspec $ do
noDiagnostics
noDiagnostics
noDiagnostics
noDiagnostics
- item:_ <- getCompletions doc (Position 5 5)
+ comps <- getCompletions doc (Position 5 5)
+ let item = head (filter (\x -> x ^. label == "interactWithUser") comps)
liftIO $ do
item ^. label `shouldBe` "interactWithUser"
item ^. kind `shouldBe` Just CiFunction
liftIO $ do
item ^. label `shouldBe` "interactWithUser"
item ^. kind `shouldBe` Just CiFunction
@@
-273,10
+274,10
@@
main = hspec $ do
describe "waitForDiagnosticsSource" $
it "works" $ runSession "hie" fullCaps "test/data" $ do
openDoc "Error.hs" "haskell"
describe "waitForDiagnosticsSource" $
it "works" $ runSession "hie" fullCaps "test/data" $ do
openDoc "Error.hs" "haskell"
- [diag] <- waitForDiagnosticsSource "
ghcmod
"
+ [diag] <- waitForDiagnosticsSource "
bios
"
liftIO $ do
diag ^. severity `shouldBe` Just DsError
liftIO $ do
diag ^. severity `shouldBe` Just DsError
- diag ^. source `shouldBe` Just "
ghcmod
"
+ diag ^. source `shouldBe` Just "
bios
"
describe "rename" $
it "works" $ runSession "hie" fullCaps "test/data" $ do
describe "rename" $
it "works" $ runSession "hie" fullCaps "test/data" $ do