fix(tests): to reflect recent changes
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
adddf06e44
commit
69d9c8b95d
2 changed files with 4 additions and 7 deletions
|
@ -91,14 +91,11 @@ static void tst2() {
|
||||||
expr f = Const("f");
|
expr f = Const("f");
|
||||||
expr g = Const("g");
|
expr g = Const("g");
|
||||||
expr a = Const("a");
|
expr a = Const("a");
|
||||||
lean_assert(s.occurs(m1, f(m1)));
|
|
||||||
lean_assert(!s.occurs(m2, f(m1)));
|
|
||||||
s.assign(m1, f(m2), mk_assumption_justification(1));
|
s.assign(m1, f(m2), mk_assumption_justification(1));
|
||||||
lean_assert(s.occurs(m2, f(m1)));
|
|
||||||
s.assign(m2, g(a), mk_assumption_justification(2));
|
s.assign(m2, g(a), mk_assumption_justification(2));
|
||||||
lean_assert(check_assumptions(s.get_assignment(m1)->second, {1}));
|
lean_assert(check_assumptions(s.get_assignment(m1)->second, {1}));
|
||||||
lean_assert(!s.occurs(m1, f(m1)));
|
lean_assert(s.occurs(m1, f(m1)));
|
||||||
lean_assert(!s.occurs(m2, f(m1)));
|
lean_assert(s.occurs(m2, f(m1)));
|
||||||
lean_assert(!s.occurs(m1, f(m2)));
|
lean_assert(!s.occurs(m1, f(m2)));
|
||||||
lean_assert(!s.occurs(m1, f(a)));
|
lean_assert(!s.occurs(m1, f(a)));
|
||||||
lean_assert(!s.occurs(m3, f(m1)));
|
lean_assert(!s.occurs(m3, f(m1)));
|
||||||
|
|
|
@ -24,8 +24,8 @@ assert(s:get_expr("m") == a)
|
||||||
local m2 = mk_metavar("m2", Prop)
|
local m2 = mk_metavar("m2", Prop)
|
||||||
s:assign(m2, f(m))
|
s:assign(m2, f(m))
|
||||||
print(s:get_expr("m2"))
|
print(s:get_expr("m2"))
|
||||||
assert(not s:occurs(m, f(m2)))
|
assert(s:occurs(m, f(m2)))
|
||||||
assert(not s:occurs_expr("m", f(m2)))
|
assert(s:occurs_expr("m", f(m2)))
|
||||||
print(s:get_level("u"))
|
print(s:get_level("u"))
|
||||||
print(s:instantiate(mk_sort(u)))
|
print(s:instantiate(mk_sort(u)))
|
||||||
assert(s:instantiate(mk_sort(u)) == mk_sort(l))
|
assert(s:instantiate(mk_sort(u)) == mk_sort(l))
|
||||||
|
|
Loading…
Reference in a new issue