Add BOOST_TEST_NO_THROW and print expression in BOOST_TEST_THROWS

This commit is contained in:
Glen Fernandes
2020-04-30 21:01:10 -04:00
parent 94def8a3a6
commit 3ca745f400
5 changed files with 99 additions and 15 deletions

View File

@@ -108,5 +108,9 @@ int main()
BOOST_TEST_THROWS( f(true), X );
BOOST_TEST_THROWS( f(false), int );
// BOOST_TEST_NO_THROW
BOOST_TEST_NO_THROW(++y);
return boost::report_errors();
}