summaryrefslogtreecommitdiff
path: root/server/test/completion
diff options
context:
space:
mode:
Diffstat (limited to 'server/test/completion')
-rw-r--r--server/test/completion/init.lua36
1 files changed, 36 insertions, 0 deletions
diff --git a/server/test/completion/init.lua b/server/test/completion/init.lua
index 218a6a46..31021fac 100644
--- a/server/test/completion/init.lua
+++ b/server/test/completion/init.lua
@@ -128,3 +128,39 @@ zac@
kind = CompletionItemKind.Field,
},
}
+
+TEST [[
+a@
+]]
+{
+ {
+ label = 'assert',
+ kind = CompletionItemKind.Function,
+ }
+}
+
+TEST [[
+local t = {
+ abc = 1,
+}
+t.a@
+]]
+{
+ {
+ label = 'abc',
+ kind = CompletionItemKind.Enum,
+ detail = 'abc = 1',
+ }
+}
+
+TEST [[
+local zabc = 1
+z@
+]]
+{
+ {
+ label = 'zabc',
+ kind = CompletionItemKind.Variable,
+ detail = 'zabc = 1',
+ }
+}