summaryrefslogtreecommitdiff
path: root/test/diagnostics
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-07-25 23:14:35 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-07-25 23:14:35 +0800
commit26732327848c0eaa8dd76abbd127d4a7a5a12121 (patch)
treef7d60b5e2137288c471025b530a859638f01f221 /test/diagnostics
parent3783510c5b2e7288035d95dd6109eeeeb6435f6d (diff)
downloadlua-language-server-26732327848c0eaa8dd76abbd127d4a7a5a12121.zip
fix #1365
Diffstat (limited to 'test/diagnostics')
-rw-r--r--test/diagnostics/common.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/diagnostics/common.lua b/test/diagnostics/common.lua
index 05656db5..9d337e53 100644
--- a/test/diagnostics/common.lua
+++ b/test/diagnostics/common.lua
@@ -1087,6 +1087,18 @@ end
]]
TEST [[
+for i = <!100, 10, 1!> do
+ print(i)
+end
+]]
+
+TEST [[
+for i = <!1, -10!> do
+ print(i)
+end
+]]
+
+TEST [[
for i = 1, 1 do
print(i)
end