From ca0341d0760a067b6554d5b7aeb8357ec84e564f 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, 6 Mar 2019 17:34:21 +0800 Subject: =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=87=AA=E5=8A=A8=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/test/completion/init.lua | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'server/test/completion/init.lua') 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', } } -- cgit v1.2.3