summaryrefslogtreecommitdiff
path: root/server/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-12-19 14:06:06 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-12-19 14:06:06 +0800
commit2aca34e65556b3428f4596906dfa6aa7a639c7b5 (patch)
treeba54ad6818c60c4f6f56dc25beba52b563888c57 /server/test
parent316fac0c3c4981444db27b18c2caaef29c32418e (diff)
downloadlua-language-server-2aca34e65556b3428f4596906dfa6aa7a639c7b5.zip
enum
Diffstat (limited to 'server/test')
-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',
+ }
+}