lean2/tests/lua/opt2.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

9 lines
267 B
Lua

opts = options()
assert(is_options(opts))
opts = opts:update(name('pp', 'colors'), false)
opts = opts:update(name('pp', 'colors'), true)
print(opts)
assert(is_options(opts))
assert(not is_options(name("foo")))
assert(not is_options("foo"))
assert(not is_options({}))