aboutsummaryrefslogtreecommitdiff
path: root/spec/outputs/loops.lua
diff options
context:
space:
mode:
Diffstat (limited to 'spec/outputs/loops.lua')
-rw-r--r--spec/outputs/loops.lua37
1 files changed, 37 insertions, 0 deletions
diff --git a/spec/outputs/loops.lua b/spec/outputs/loops.lua
index 40e27b9..8624d49 100644
--- a/spec/outputs/loops.lua
+++ b/spec/outputs/loops.lua
@@ -333,3 +333,40 @@ do
333 ::_continue_11:: 333 ::_continue_11::
334 end 334 end
335end 335end
336do
337 repeat
338 local byte = stream:read_one()
339 if byte then
340 if byte == 0 then
341 goto _continue_13
342 end
343 print(byte)
344 else
345 break
346 end
347 ::_continue_13::
348 until false
349end
350do
351 local func
352 repeat
353 local success, result = xpcall(func, function(err)
354 return print(err)
355 end, 1, 2, 3)
356 if success then
357 print(result)
358 else
359 break
360 end
361 until false
362end
363do
364 repeat
365 x = func('a', b)
366 if not x then
367 print("false expected")
368 else
369 break
370 end
371 until false
372end