summaryrefslogtreecommitdiff
path: root/test/crossfile
diff options
context:
space:
mode:
Diffstat (limited to 'test/crossfile')
-rw-r--r--test/crossfile/completion.lua12
-rw-r--r--test/crossfile/hover.lua4
2 files changed, 15 insertions, 1 deletions
diff --git a/test/crossfile/completion.lua b/test/crossfile/completion.lua
index e9a70199..927cad3c 100644
--- a/test/crossfile/completion.lua
+++ b/test/crossfile/completion.lua
@@ -786,3 +786,15 @@ TEST {
},
completion = EXISTS,
}
+
+TEST {
+ { path = 'a.lua', content = '' },
+ {
+ path = 'main.lua',
+ main = true,
+ content = [[
+ require'$
+ ]]
+ },
+ completion = EXISTS
+}
diff --git a/test/crossfile/hover.lua b/test/crossfile/hover.lua
index e673bc5f..04f7cc02 100644
--- a/test/crossfile/hover.lua
+++ b/test/crossfile/hover.lua
@@ -534,7 +534,9 @@ hover = {
name = 'f',
description = [[
@*param* `arg3` — comment3
+
---
+
@*param* `arg1` — comment1
@*param* `arg2` — comment2]]
@@ -592,7 +594,7 @@ function f()
-> boolean
2. string]],
name = 'f',
- description = nil
+ description = ''
}}
TEST {{ path = 'a.lua', content = '', }, {