test(lua): add tests for new Pi/Fun notation in Lua
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
bcb9965844
commit
4f15240a71
1 changed files with 9 additions and 0 deletions
9
tests/lua/expr8.lua
Normal file
9
tests/lua/expr8.lua
Normal file
|
@ -0,0 +1,9 @@
|
|||
local Or = Const("or")
|
||||
local A = Local("A", Type)
|
||||
local a = Local("a", A)
|
||||
local b = Local("b", A)
|
||||
local H = Local("H", Or(a, b))
|
||||
print(Pi({A, {a, true}, {b, Bool}, {H, binder_info(false, true)}}, Or(b, a)))
|
||||
print(Pi({A, a, b, H}, Or(b, a)))
|
||||
print(Fun({A, {a, true}, {b, Bool}, {H, binder_info(false, true)}}, Or(b, a)))
|
||||
print(Fun({A, a, b, H}, Or(b, a)))
|
Loading…
Reference in a new issue