lean2/tests/lean/lua15.lean
Leonardo de Moura 590b14570f feat(lua): improve error handling in Lua API
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-11-16 18:21:42 -08:00

14 lines
266 B
Text

Variables i j : Int
Variable p : Bool
(**
local env = get_environment()
ok, jst = pcall(
function()
print(parse_lean("i + p"))
end)
assert(not ok)
assert(is_justification(jst))
assert(not jst:is_null())
print(jst:pp{display_children = false})
**)