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.lua49
1 files changed, 38 insertions, 11 deletions
diff --git a/server/test/completion/init.lua b/server/test/completion/init.lua
index da633a86..218a6a46 100644
--- a/server/test/completion/init.lua
+++ b/server/test/completion/init.lua
@@ -68,36 +68,63 @@ function TEST(script)
end
TEST [[
-local abcde
-a@
+local zabcde
+za@
]]
{
{
- label = 'abcde',
+ label = 'zabcde',
kind = CompletionItemKind.Variable,
}
}
TEST [[
-local abcdefg
-local abcde
-abcde@
+local zabcdefg
+local zabcde
+zabcde@
]]
{
{
- label = 'abcdefg',
+ label = 'zabcdefg',
kind = CompletionItemKind.Variable,
}
}
TEST [[
-local abcdefg
-a@
-local abcde
+local zabcdefg
+za@
+local zabcde
]]
{
{
- label = 'abcdefg',
+ label = 'zabcdefg',
kind = CompletionItemKind.Variable,
}
}
+
+TEST [[
+local zabcde
+zace@
+]]
+{
+ {
+ label = 'zabcde',
+ kind = CompletionItemKind.Variable,
+ }
+}
+
+TEST [[
+ZABC
+local zabc
+zac@
+]]
+{
+ {
+ label = 'zabc',
+ kind = CompletionItemKind.Variable,
+ },
+ {
+ label = 'ZABC',
+ kind = CompletionItemKind.Field,
+ },
+}