summaryrefslogtreecommitdiff
path: root/server/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2018-12-10 21:55:37 +0800
committer最萌小汐 <sumneko@hotmail.com>2018-12-10 21:55:37 +0800
commit639b77d117bb2ba9ff1a7f5784944ac24e63d4f1 (patch)
tree9371ee87f312a19b6c7760dc95b9978db42d1d76 /server/test
parent40b4205e731849ecf68d2c9e80573fd7a0c4030a (diff)
downloadlua-language-server-639b77d117bb2ba9ff1a7f5784944ac24e63d4f1.zip
更新vm
Diffstat (limited to 'server/test')
-rw-r--r--server/test/vm/init.lua38
1 files changed, 38 insertions, 0 deletions
diff --git a/server/test/vm/init.lua b/server/test/vm/init.lua
index 2334f380..6963e4c4 100644
--- a/server/test/vm/init.lua
+++ b/server/test/vm/init.lua
@@ -76,3 +76,41 @@ local a, b, c = 1, 2, ...
TEST [[
xx(a, b, 2, 3, ...)
]]
+
+TEST [[
+if a then
+elseif b then
+elseif c then
+else
+end
+]]
+
+TEST [[
+for i = 1, 10, 1 do
+end
+]]
+
+TEST [[
+for a, b, c in pairs(t) do
+end
+]]
+
+TEST [[
+while true do
+end
+]]
+
+TEST [[
+repeat
+until true
+]]
+
+TEST [[
+function xx:yy(a, b, c, ...)
+end
+]]
+
+TEST [[
+local function xx(a, b, c, ...)
+end
+]]