summaryrefslogtreecommitdiff
path: root/server-beta/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2019-11-07 20:06:45 +0800
committer最萌小汐 <sumneko@hotmail.com>2019-11-07 20:06:45 +0800
commita80d62baf3568e42ffa796509a2056dd9021c462 (patch)
treeebdbff6bda538d728e797e4c48ddb15c8e74db61 /server-beta/test
parent0f4da273013ed0b311debefb8824c47d8be7e58f (diff)
downloadlua-language-server-a80d62baf3568e42ffa796509a2056dd9021c462.zip
诊断测试完成
Diffstat (limited to 'server-beta/test')
-rw-r--r--server-beta/test/diagnostics/init.lua37
1 files changed, 29 insertions, 8 deletions
diff --git a/server-beta/test/diagnostics/init.lua b/server-beta/test/diagnostics/init.lua
index 2bb99323..ac76371d 100644
--- a/server-beta/test/diagnostics/init.lua
+++ b/server-beta/test/diagnostics/init.lua
@@ -203,6 +203,34 @@ print()
]]
TEST [[
+return {
+ <!print
+ 'string'!>
+}
+]]
+
+TEST [[
+return {
+ <!print
+ {
+ x = 1,
+ }!>
+}
+]]
+
+TEST [[
+print()
+'string'
+]]
+
+TEST [[
+print
+{
+ x = 1,
+}
+]]
+
+TEST [[
local function x(a, b)
return a, b
end
@@ -619,14 +647,7 @@ x = (x + y) or 0
TEST [[
local t = {}
-function t:<!a!>()
-end
-function t:<!a!>()
-end
-]]
-
-TEST [[
-local t = {}
t.a = 1
t.a = 2
+return t
]]