From 316fac0c3c4981444db27b18c2caaef29c32418e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 19 Dec 2018 13:55:54 +0800 Subject: =?UTF-8?q?=E6=94=AF=E6=8C=81=E6=89=BE=E5=85=A8=E5=B1=80=E5=8F=98?= =?UTF-8?q?=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/test/completion/init.lua | 49 ++++++++++++++++++++++++++++++++--------- 1 file changed, 38 insertions(+), 11 deletions(-) (limited to 'server/test/completion/init.lua') 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, + }, +} -- cgit v1.2.3