test(lua): use simplified Const creation
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
09bed4786c
commit
6b30ebab5e
1 changed files with 1 additions and 3 deletions
|
@ -1,10 +1,9 @@
|
||||||
|
|
||||||
Variable x : Bool
|
Variable x : Bool
|
||||||
|
|
||||||
(**
|
(**
|
||||||
local env = get_environment()
|
local env = get_environment()
|
||||||
local Int = Const("Int")
|
local Int = Const("Int")
|
||||||
local plus = Const(name("Int", "add"))
|
local plus = Const{"Int", "add"}
|
||||||
local x1, x2 = Consts("x1, x2")
|
local x1, x2 = Consts("x1, x2")
|
||||||
print(env:check_type(Int))
|
print(env:check_type(Int))
|
||||||
print(env:check_type(plus))
|
print(env:check_type(plus))
|
||||||
|
@ -35,4 +34,3 @@ Variable x : Bool
|
||||||
Show Environment 1
|
Show Environment 1
|
||||||
Eval sum1
|
Eval sum1
|
||||||
Variable y : Bool
|
Variable y : Bool
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue