Add BOOST_TEST_NO_THROW and print expression in BOOST_TEST_THROWS

This commit is contained in:
Glen Fernandes
2020-05-01 14:34:02 -04:00
parent 94def8a3a6
commit 3ca745f400
5 changed files with 99 additions and 15 deletions
+19
View File
@@ -0,0 +1,19 @@
/*
Copyright 2020 Glen Joseph Fernandes
(glenjofe@gmail.com)
Distributed under the Boost Software License, Version 1.0.
(http://www.boost.org/LICENSE_1_0.txt)
*/
#include <boost/core/lightweight_test.hpp>
void f()
{
throw 5;
}
int main()
{
BOOST_TEST_NO_THROW(f());
return boost::report_errors();
}