style fixes in TestHelper.h

This commit is contained in:
Lefteris Karapetsas 2015-03-09 13:06:16 +01:00
parent 3efbe46a49
commit d586a88f3c

View File

@ -58,13 +58,13 @@ namespace test
} \ } \
catch (boost::exception const& _e) \ catch (boost::exception const& _e) \
{ \ { \
auto msg = std::string(_message" due to an exception thrown by " \ auto msg = std::string(_message " due to an exception thrown by " \
BOOST_STRINGIZE(_statement)"\n") + boost::diagnostic_information(_e); \ BOOST_STRINGIZE(_statement) "\n") + boost::diagnostic_information(_e); \
BOOST_CHECK_IMPL(false, msg, REQUIRE, CHECK_MSG); \ BOOST_CHECK_IMPL(false, msg, REQUIRE, CHECK_MSG); \
} \ } \
catch (...) \ catch (...) \
{ \ { \
BOOST_CHECK_IMPL( false, "Unknown exception thrown by " \ BOOST_CHECK_IMPL(false, "Unknown exception thrown by " \
BOOST_STRINGIZE(_statement), REQUIRE, CHECK_MSG); \ BOOST_STRINGIZE(_statement), REQUIRE, CHECK_MSG); \
} \ } \
} \ } \
@ -84,13 +84,13 @@ namespace test
} \ } \
catch (boost::exception const& _e) \ catch (boost::exception const& _e) \
{ \ { \
auto msg = std::string(_message" due to an exception thrown by " \ auto msg = std::string(_message " due to an exception thrown by " \
BOOST_STRINGIZE(_statement)"\n") + boost::diagnostic_information(_e); \ BOOST_STRINGIZE(_statement) "\n") + boost::diagnostic_information(_e); \
BOOST_CHECK_IMPL(false, msg, CHECK, CHECK_MSG); \ BOOST_CHECK_IMPL(false, msg, CHECK, CHECK_MSG); \
} \ } \
catch (...) \ catch (...) \
{ \ { \
BOOST_CHECK_IMPL( false, "Unknown exception thrown by " \ BOOST_CHECK_IMPL(false, "Unknown exception thrown by " \
BOOST_STRINGIZE(_statement), CHECK, CHECK_MSG ); \ BOOST_STRINGIZE(_statement), CHECK, CHECK_MSG ); \
} \ } \
} \ } \