lean2/tests/lua/opt2.lua

10 lines
267 B
Lua
Raw Normal View History

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({}))