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:
Leonardo de Moura 2013-12-24 21:14:22 -08:00
parent 2aa691ccb3
commit 60ac0b508d

View file

@ -101,13 +101,8 @@ static void tst3() {
lean_assert(normalize(Const("b"), c_env) == iVal(6));
c_env->add_definition("c", Int, Const("a"));
lean_assert(normalize(Const("c"), c_env) == iVal(3));
try {
expr r = normalize(Const("c"), env);
lean_assert(r == iVal(3));
lean_unreachable();
} catch (exception const & ex) {
std::cout << "expected error: " << ex.what() << std::endl;
}
expr r = normalize(Const("c"), env);
lean_assert(r == Const("c"));
std::cout << "end tst3" << std::endl;
}