From 2aca34e65556b3428f4596906dfa6aa7a639c7b5 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 14:06:06 +0800 Subject: enum --- server/test/completion/init.lua | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'server/test') 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', + } +} -- cgit v1.2.3