test(exception): add tests for improving coverage

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2013-09-26 08:32:52 -07:00
parent a24dbc3527
commit 19f4554145

View file

@ -34,9 +34,18 @@ static void tst3() {
}
}
static void tst4() {
try {
throw interrupted();
} catch (exception & ex) {
lean_assert(std::string("interrupted") == ex.what());
}
}
int main() {
tst1();
tst2();
tst3();
tst4();
return has_violations() ? 1 : 0;
}