lean2/tests/lua/old/import.lua
Leonardo de Moura a6116e3156 test(lua): reactivate some of the Lua unit tests
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-04-29 10:36:57 -07:00

12 lines
295 B
Lua

local env = get_environment()
assert(env:imported("kernel"))
assert(env:imported("Nat"))
assert(not env:imported("Real"))
print("before import Real")
env:import("Real")
print("after import Real")
assert(env:imported("Real"))
parse_lean_cmds([[
variables a b c : Real
check a + b + 0
]])