summaryrefslogtreecommitdiff
path: root/server/test
diff options
context:
space:
mode:
Diffstat (limited to 'server/test')
-rw-r--r--server/test/completion/init.lua17
-rw-r--r--server/test/vm/dirty.lua7
2 files changed, 24 insertions, 0 deletions
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:
+]]