Skip to content

Commit 6cf1d60

Browse files
jacgcocreature
authored andcommitted
Test for issue #7 (#270)
1 parent 1b1c585 commit 6cf1d60

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

test/data/GotoHover.hs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,6 @@ listCompBind = [ succ c | c <- "abc" ]
3636
multipleClause :: Bool -> Char
3737
multipleClause True = 't'
3838
multipleClause False = 'f'
39+
40+
-- | Recognizable docs: kpqz
41+
documented = True

test/exe/Main.hs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -842,6 +842,7 @@ findDefinitionAndHoverTests = let
842842
lclL33 = Position 33 22
843843
mclL36 = Position 36 1 ; mcl = [mkR 36 0 36 14]
844844
mclL37 = Position 37 1
845+
docL40 = Position 40 1 ; doc = [ExpectHoverText ["Recognizable docs: kpqz"]]
845846
in
846847
mkFindTests
847848
-- def hover look expect
@@ -868,11 +869,12 @@ findDefinitionAndHoverTests = let
868869
, test yes yes lclL33 lcb "listcomp lookup"
869870
, test yes yes mclL36 mcl "top-level fn 1st clause"
870871
, test yes yes mclL37 mcl "top-level fn 2nd clause #246"
872+
, test no broken docL40 doc "documentation"
871873
]
872874
where yes, broken :: (TestTree -> Maybe TestTree)
873875
yes = Just -- test should run and pass
874876
broken = Just . (`xfail` "known broken")
875-
-- no = const Nothing -- don't run this test at all
877+
no = const Nothing -- don't run this test at all
876878

877879
pluginTests :: TestTree
878880
pluginTests = testSessionWait "plugins" $ do

0 commit comments

Comments
 (0)