test(lua): add Lua State tests
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
701b60d2d9
commit
dbe55bf84a
1 changed files with 5 additions and 0 deletions
5
tests/lua/state.lua
Normal file
5
tests/lua/state.lua
Normal file
|
@ -0,0 +1,5 @@
|
|||
s = State()
|
||||
s:eval([[ y = 5; print(x); print(y); ]])
|
||||
s:set("x", 10)
|
||||
s:set("y", nil)
|
||||
s:eval([[ print(x); print(y); ]])
|
Loading…
Reference in a new issue