From f1c51cb19cb591ef99e9ae673da9067d2629be79 Mon Sep 17 00:00:00 2001 From: Edward Diener Date: Thu, 19 May 2016 09:56:23 -0400 Subject: [PATCH] Added BOOST_TEST_NOT to lightweight test. --- include/boost/core/lightweight_test.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/include/boost/core/lightweight_test.hpp b/include/boost/core/lightweight_test.hpp index cdc8a72..e0fc90b 100644 --- a/include/boost/core/lightweight_test.hpp +++ b/include/boost/core/lightweight_test.hpp @@ -144,6 +144,7 @@ inline int report_errors() } // namespace boost #define BOOST_TEST(expr) ((expr)? (void)0: ::boost::detail::test_failed_impl(#expr, __FILE__, __LINE__, BOOST_CURRENT_FUNCTION)) +#define BOOST_TEST_NOT(expr) BOOST_TEST(!(expr)) #define BOOST_ERROR(msg) ( ::boost::detail::error_impl(msg, __FILE__, __LINE__, BOOST_CURRENT_FUNCTION) )