summaryrefslogtreecommitdiff
path: root/test/completion
diff options
context:
space:
mode:
Diffstat (limited to 'test/completion')
-rw-r--r--test/completion/init.lua61
1 files changed, 40 insertions, 21 deletions
diff --git a/test/completion/init.lua b/test/completion/init.lua
index 89cad975..38d85132 100644
--- a/test/completion/init.lua
+++ b/test/completion/init.lua
@@ -2374,24 +2374,43 @@ f(1, {}, {}, {
}
}
---TEST [[
------@class C
------@field x number
------@field y number
---
------@type C
---local t = {
--- $
---}
---
---]]
---{
--- {
--- label = 'x',
--- kind = define.CompletionItemKind.Property,
--- },
--- {
--- label = 'y',
--- kind = define.CompletionItemKind.Property,
--- }
---}
+TEST [[
+---@class C
+---@field x number
+---@field y number
+
+---@type C
+local t = {
+ $
+}
+
+]]
+{
+ {
+ label = 'x',
+ kind = define.CompletionItemKind.Property,
+ },
+ {
+ label = 'y',
+ kind = define.CompletionItemKind.Property,
+ }
+}
+
+TEST [[
+---@class C
+---@field x number
+---@field y number
+
+---@type C
+local t = {
+ x$
+}
+
+]]
+{
+ include = true,
+ {
+ label = 'x',
+ kind = define.CompletionItemKind.Property,
+ },
+}