Skip to content
This repository has been archived by the owner on Jan 2, 2021. It is now read-only.

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
pepeiborra committed Jun 30, 2020
1 parent 4d5af8a commit 63065f3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions test/data/hover/Bar.hs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
module Bar (Bar(..)) where

-- | Bar Haddock
data Bar = Bar
3 changes: 2 additions & 1 deletion test/data/hover/Foo.hs
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ module Foo (Bar, foo) where

import Bar

foo = Bar
-- | foo Haddock
foo = Bar
4 changes: 2 additions & 2 deletions test/exe/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1649,8 +1649,8 @@ findDefinitionAndHoverTests = let
lstL43 = Position 47 12 ; litL = [ExpectHoverText ["[8391 :: Int, 6268]"]]
outL45 = Position 49 3 ; outSig = [ExpectHoverText ["outer", "Bool"], mkR 46 0 46 5]
innL48 = Position 52 5 ; innSig = [ExpectHoverText ["inner", "Char"], mkR 49 2 49 7]
imported = Position 56 13 ; importedSig = getDocUri "Foo.hs" >>= \foo -> return [ExpectHoverText ["foo", "Foo"], mkL foo 4 0 4 3]
reexported = Position 55 14 ; reexportedSig = getDocUri "Bar.hs" >>= \bar -> return [ExpectHoverText ["Bar", "Bar"], mkL bar 2 0 2 14]
imported = Position 56 13 ; importedSig = getDocUri "Foo.hs" >>= \foo -> return [ExpectHoverText ["foo", "Foo", "Haddock"], mkL foo 5 0 4 3]
reexported = Position 55 14 ; reexportedSig = getDocUri "Bar.hs" >>= \bar -> return [ExpectHoverText ["Bar", "Bar", "Haddock"], mkL bar 3 0 2 14]
in
mkFindTests
-- def hover look expect
Expand Down

0 comments on commit 63065f3

Please sign in to comment.