test(lua): add Lua State tests

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2014-05-26 04:43:44 -07:00
parent 701b60d2d9
commit dbe55bf84a

5
tests/lua/state.lua Normal file
View 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); ]])