summaryrefslogtreecommitdiff
path: root/test/diagnostics/count-down-loop.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/diagnostics/count-down-loop.lua')
-rw-r--r--test/diagnostics/count-down-loop.lua29
1 files changed, 29 insertions, 0 deletions
diff --git a/test/diagnostics/count-down-loop.lua b/test/diagnostics/count-down-loop.lua
new file mode 100644
index 00000000..f4e385f5
--- /dev/null
+++ b/test/diagnostics/count-down-loop.lua
@@ -0,0 +1,29 @@
+TEST [[
+for i = <!10, 1!> do
+ print(i)
+end
+]]
+
+TEST [[
+for i = <!10, 1, 5!> do
+ print(i)
+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
+]]