lean2/tests/lua/state.lua
Leonardo de Moura dbe55bf84a test(lua): add Lua State tests
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-05-26 04:43:44 -07:00

5 lines
118 B
Lua

s = State()
s:eval([[ y = 5; print(x); print(y); ]])
s:set("x", 10)
s:set("y", nil)
s:eval([[ print(x); print(y); ]])