Skip to content

Commit d3d7d12

Browse files
committed
Add a signature help test: imported function with no doc
1 parent 433a8ad commit d3d7d12

File tree

1 file changed

+9
-0
lines changed
  • plugins/hls-signature-help-plugin/test

1 file changed

+9
-0
lines changed

plugins/hls-signature-help-plugin/test/Main.hs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,15 @@ main =
318318
[ Nothing,
319319
Just $ SignatureHelp [SignatureInformation "f :: Bool -> Int -> Bool" (Just $ InR $ MarkupContent MarkupKind_Markdown "\n\nDoc for function `f` .\n\n") (Just [ParameterInformation (InR (5,9)) (Just $ InR $ MarkupContent MarkupKind_Markdown "\n\nThe first `Bool` argument\n\n"), ParameterInformation (InR (13,16)) (Just $ InR $ MarkupContent MarkupKind_Markdown "\n\nThe second `Int` argument\n\n")]) (Just (InL 0))] (Just 0) (Just (InL 0))
320320
],
321+
mkTest
322+
"imported function with no documentation"
323+
[trimming|
324+
x = even 1
325+
^ ^
326+
|]
327+
[ Nothing,
328+
Just $ SignatureHelp [SignatureInformation "even :: forall a. Integral a => a -> Bool" (Just $ InR $ MarkupContent MarkupKind_Markdown "\\[Documentation\\]\\(file://.*\\)\n\n\\[Source\\]\\(file://.*\\)\n\n") (Just [ParameterInformation (InR (32,33)) Nothing]) (Just (InL 0)), SignatureInformation "even :: Integer -> Bool" (Just $ InR $ MarkupContent MarkupKind_Markdown "\\[Documentation\\]\\(file://.*\\)\n\n\\[Source\\]\\(file://.*\\)\n\n") (Just [ParameterInformation (InR (8,15)) Nothing]) (Just (InL 0))] (Just 0) (Just (InL 0))
329+
],
321330
mkTest
322331
"imported function with argument documentation"
323332
[trimming|

0 commit comments

Comments
 (0)