lean2/tests/lua/env2.lua
Leonardo de Moura 4d1fecb21d refactor(library/kernel_bindings): rename empty_environment ==> bare_environment in the Lua API
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-05-21 11:24:24 -07:00

9 lines
525 B
Lua

assert(not bare_environment({eta=false}):eta())
assert(bare_environment({eta=true}):eta())
assert(not bare_environment({prop_proof_irrel=false}):prop_proof_irrel())
assert(bare_environment({prop_proof_irrel=true}):prop_proof_irrel())
assert(bare_environment({impredicative=true}):impredicative())
assert(not bare_environment({impredicative=false}):impredicative())
assert(bare_environment({trust_lvl=10}):trust_lvl() == 10)
assert(bare_environment({trust_lvl=0}):trust_lvl() == 0)
assert(bare_environment():trust_lvl() == 0)