fix(tests/kernel/environment): adjust the test to reflect (recent) change in the normalizer
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
2aa691ccb3
commit
60ac0b508d
1 changed files with 2 additions and 7 deletions
|
@ -101,13 +101,8 @@ static void tst3() {
|
||||||
lean_assert(normalize(Const("b"), c_env) == iVal(6));
|
lean_assert(normalize(Const("b"), c_env) == iVal(6));
|
||||||
c_env->add_definition("c", Int, Const("a"));
|
c_env->add_definition("c", Int, Const("a"));
|
||||||
lean_assert(normalize(Const("c"), c_env) == iVal(3));
|
lean_assert(normalize(Const("c"), c_env) == iVal(3));
|
||||||
try {
|
expr r = normalize(Const("c"), env);
|
||||||
expr r = normalize(Const("c"), env);
|
lean_assert(r == Const("c"));
|
||||||
lean_assert(r == iVal(3));
|
|
||||||
lean_unreachable();
|
|
||||||
} catch (exception const & ex) {
|
|
||||||
std::cout << "expected error: " << ex.what() << std::endl;
|
|
||||||
}
|
|
||||||
std::cout << "end tst3" << std::endl;
|
std::cout << "end tst3" << std::endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue