summaryrefslogtreecommitdiff
path: root/server/test/completion/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/test/completion/init.lua')
-rw-r--r--server/test/completion/init.lua26
1 files changed, 13 insertions, 13 deletions
diff --git a/server/test/completion/init.lua b/server/test/completion/init.lua
index 3e7f9792..874b0948 100644
--- a/server/test/completion/init.lua
+++ b/server/test/completion/init.lua
@@ -182,40 +182,40 @@ ass@
}
TEST [[
-local t = {
- abc = 1,
-}
-t.a@
+local zabc = 1
+z@
]]
{
{
- label = 'abc',
- kind = CompletionItemKind.Enum,
+ label = 'zabc',
+ kind = CompletionItemKind.Variable,
detail = '= 1',
}
}
TEST [[
-local zabc = 1
+local zabc = 1.0
z@
]]
{
{
label = 'zabc',
kind = CompletionItemKind.Variable,
- detail = '= 1',
+ detail = '= 1.0',
}
}
TEST [[
-local zabc = 1.0
-z@
+local t = {
+ abc = 1,
+}
+t.a@
]]
{
{
- label = 'zabc',
- kind = CompletionItemKind.Variable,
- detail = '= 1.0',
+ label = 'abc',
+ kind = CompletionItemKind.Enum,
+ detail = '= 1',
}
}