Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add test

  • Loading branch information...
commit 27adecdea3ffadc126faa8299124f1b391956e1b 1 parent c2fa079
@fperrad authored
Showing with 15 additions and 1 deletion.
  1. +15 −1 test_lua52/012-repeat.t
View
16 test_lua52/012-repeat.t
@@ -27,7 +27,7 @@ See "Programming in Lua", section 4.3 "Control Structures".
]]
-print("1..7")
+print("1..8")
a = {"ok 1 - repeat", "ok 2", "ok 3"}
local i = 0
@@ -56,6 +56,20 @@ else
print("not ok 7 - " .. a[i])
end
+function f () return true end
+
+local i = 1
+repeat
+ local v = f()
+ if i == 1 then
+ print("ok 8 - scope")
+ else
+ print("not ok")
+ break
+ end
+ i = i + 1
+until v
+
-- Local Variables:
-- mode: lua
-- lua-indent-level: 4
Please sign in to comment.
Something went wrong with that request. Please try again.