test(exception): add tests for improving coverage
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
parent
a24dbc3527
commit
19f4554145
1 changed files with 9 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue