lean2/tests/lua/sexpr3.lua
Leonardo de Moura cc17be1ef1 feat(lua): add is_* predicates
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-11-08 12:40:28 -08:00

6 lines
126 B
Lua

l = sexpr(1, 2, 3)
print(l)
assert(is_sexpr(l))
assert(is_sexpr(sexpr(10)))
assert(not is_sexpr(10))
assert(not is_sexpr({}))