lean2/tests/lua/n2.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
129 B
Lua

assert(is_name(name("foo")))
assert(not is_name("foo"))
assert(not is_name(3))
a = name("foo", 1, 2)
print(a)
assert(is_name(a))