projects
/
lsp-test.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix getTypeDefinitions test
[lsp-test.git]
/
test
/
Test.hs
diff --git
a/test/Test.hs
b/test/Test.hs
index c5b02e8f91842c85d07b07cd1198dcffc7ee530e..2372cbefff91ebf9c2b6004a301d6cab0a1e5f63 100644
(file)
--- a/
test/Test.hs
+++ b/
test/Test.hs
@@
-264,7
+264,7
@@
main = hspec $ do
doc <- openDoc "Desktop/simple.hs" "haskell"
let pos = Position 20 23 -- Quit value
defs <- getTypeDefinitions doc pos
doc <- openDoc "Desktop/simple.hs" "haskell"
let pos = Position 20 23 -- Quit value
defs <- getTypeDefinitions doc pos
- liftIO $ defs `shouldBe` [Location (doc ^. uri) (mkRange 10
15 10 19)] -- First constructor
+ liftIO $ defs `shouldBe` [Location (doc ^. uri) (mkRange 10
0 14 19)] -- Type definition
describe "waitForDiagnosticsSource" $
it "works" $ runSession "hie" fullCaps "test/data" $ do
describe "waitForDiagnosticsSource" $
it "works" $ runSession "hie" fullCaps "test/data" $ do