diff --git a/src/tests/util/exception.cpp b/src/tests/util/exception.cpp index b8d8e4c737..5b9b90b81a 100644 --- a/src/tests/util/exception.cpp +++ b/src/tests/util/exception.cpp @@ -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; }