Skip to content

Commit

Permalink
#198 add a test
Browse files Browse the repository at this point in the history
  • Loading branch information
dibyendumajumdar committed Jun 19, 2022
1 parent 486bab4 commit cfe2102
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/comptests/inputs/59_call.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
local function g()
return 1,2,3
end
local function f(a,b,c)
return 0,a,b,c,4
end

local a,b,c,d,e = f(g())
assert(a == 0)
assert(b == 1)
assert(c == 2)
assert(d == 3)
assert(e == 4)
2 changes: 2 additions & 0 deletions tests/comptests/test.lua
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ runfile("inputs/55_embed_C.lua")
runfile("inputs/56_embed_C.lua")
runfile("inputs/57_embed_C.lua")
runfile("inputs/58_cbr.lua")
runfile("inputs/59_call.lua")


print 'SUCCESS'

0 comments on commit cfe2102

Please sign in to comment.