summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-01-04 19:29:36 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-01-04 19:29:36 +0800
commit216f3d54901c6759b99850882a549210f0270745 (patch)
tree68db79cfcc46134277c9719efc0dd882630e713b /test
parente39b4a734ec3b4e769a584601f522ba4e5a84a99 (diff)
downloadlua-language-server-216f3d54901c6759b99850882a549210f0270745.zip
new dianostic: `count-down-loop`
Diffstat (limited to 'test')
-rw-r--r--test/diagnostics/init.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/diagnostics/init.lua b/test/diagnostics/init.lua
index d95bf380..4ec93acf 100644
--- a/test/diagnostics/init.lua
+++ b/test/diagnostics/init.lua
@@ -966,3 +966,15 @@ local function f() end
f(1)
]]
+
+TEST [[
+for i = <!10, 1!> do
+ print(i)
+end
+]]
+
+TEST [[
+for i = <!10, 1, 5!> do
+ print(i)
+end
+]]