diff options
Diffstat (limited to 'spec/outputs/macro.lua')
-rw-r--r-- | spec/outputs/macro.lua | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/spec/outputs/macro.lua b/spec/outputs/macro.lua index 4d31574..89c6e63 100644 --- a/spec/outputs/macro.lua +++ b/spec/outputs/macro.lua | |||
@@ -26,6 +26,10 @@ print({ | |||
26 | 123, | 26 | 123, |
27 | 'xyz' | 27 | 'xyz' |
28 | }) | 28 | }) |
29 | print({ | ||
30 | 456, | ||
31 | 'abc' | ||
32 | }) | ||
29 | do | 33 | do |
30 | assert(item == nil) | 34 | assert(item == nil) |
31 | end | 35 | end |
@@ -213,6 +217,13 @@ function tb:func() | |||
213 | end | 217 | end |
214 | end | 218 | end |
215 | print(x) | 219 | print(x) |
220 | local yue = require("yue") | ||
221 | do | ||
222 | local function f2(a) | ||
223 | return a + 1 | ||
224 | end | ||
225 | x = x + f2(3) | ||
226 | end | ||
216 | local sel | 227 | local sel |
217 | sel = function(a, b, c) | 228 | sel = function(a, b, c) |
218 | if a then | 229 | if a then |
@@ -317,7 +328,7 @@ print((setmetatable({ | |||
317 | return 998 | 328 | return 998 |
318 | end | 329 | end |
319 | })) | 330 | })) |
320 | print("current line: " .. tostring(323)) | 331 | print("current line: " .. tostring(349)) |
321 | do | 332 | do |
322 | do | 333 | do |
323 | -- TODO | 334 | -- TODO |
@@ -330,10 +341,8 @@ local _1 | |||
330 | _1 = function() | 341 | _1 = function() |
331 | print(1) | 342 | print(1) |
332 | local _accum_0 = { } | 343 | local _accum_0 = { } |
333 | local _len_0 = 1 | ||
334 | while false do | 344 | while false do |
335 | break | 345 | break |
336 | _len_0 = _len_0 + 1 | ||
337 | end | 346 | end |
338 | return _accum_0 | 347 | return _accum_0 |
339 | end | 348 | end |