test(lua): use simplified Const creation

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2013-11-14 15:17:00 -08:00
parent 09bed4786c
commit 6b30ebab5e

View file

@ -1,10 +1,9 @@
Variable x : Bool
(**
local env = get_environment()
local Int = Const("Int")
local plus = Const(name("Int", "add"))
local plus = Const{"Int", "add"}
local x1, x2 = Consts("x1, x2")
print(env:check_type(Int))
print(env:check_type(plus))
@ -35,4 +34,3 @@ Variable x : Bool
Show Environment 1
Eval sum1
Variable y : Bool