Skip to content

Commit

Permalink
issue #198 Test case for op_mov
Browse files Browse the repository at this point in the history
  • Loading branch information
dibyendumajumdar committed Sep 6, 2020
1 parent d65bedd commit 4f7cab6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/comptests/01_mov.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
f = compiler.load("local a, b, c = 4.2, true, 'hi' return a, b, c")
local z = 62
local a,b,c,d = f()
assert(z == 62)
assert(a == 4.2)
assert(b == true)
assert(c == 'hi')

0 comments on commit 4f7cab6

Please sign in to comment.