From 712b8bfd2946e15d4550fbe662746acaad46a53a 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 16:21:50 +0800 Subject: =?UTF-8?q?=E6=94=AF=E6=8C=81=E7=9C=8B=E8=A1=A8=E9=87=8C=E7=9A=84?= =?UTF-8?q?=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/test/completion/init.lua | 17 +++++++++++++++++ server/test/vm/dirty.lua | 7 +++++++ 2 files changed, 24 insertions(+) (limited to 'server/test') diff --git a/server/test/completion/init.lua b/server/test/completion/init.lua index 1524badf..c666dd5d 100644 --- a/server/test/completion/init.lua +++ b/server/test/completion/init.lua @@ -195,3 +195,20 @@ loc@ kind = CompletionItemKind.Keyword, } } + +TEST [[ +t.a = {} +t.b = {} +t.@ +]] +{ + { + label = 'a', + kind = CompletionItemKind.Field, + }, + { + label = 'b', + kind = CompletionItemKind.Field, + }, +} + diff --git a/server/test/vm/dirty.lua b/server/test/vm/dirty.lua index e69de29b..9c2e65fb 100644 --- a/server/test/vm/dirty.lua +++ b/server/test/vm/dirty.lua @@ -0,0 +1,7 @@ +TEST [[ +a. +]] + +TEST [[ +a: +]] -- cgit v1.2.3