From fe137b97c3ed63ea25f3b9e112cf6fe71b24ab11 Mon Sep 17 00:00:00 2001 From: "hans.dembinski@gmail.com" Date: Thu, 9 Feb 2017 12:48:06 +0000 Subject: [PATCH] adding documentation for new test macros --- doc/lightweight_test.qbk | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/doc/lightweight_test.qbk b/doc/lightweight_test.qbk index 4b9abd1..c7ef180 100644 --- a/doc/lightweight_test.qbk +++ b/doc/lightweight_test.qbk @@ -36,6 +36,8 @@ When using `lightweight_test.hpp`, *do not forget* to #define BOOST_ERROR(message) /*unspecified*/ #define BOOST_TEST_EQ(expr1, expr2) /*unspecified*/ #define BOOST_TEST_NE(expr1, expr2) /*unspecified*/ +#define BOOST_TEST_CSTR_EQ(expr1, expr2) /*unspecified*/ +#define BOOST_TEST_CSTR_NE(expr1, expr2) /*unspecified*/ #define BOOST_TEST_THROWS(expr, excep) /*unspecified*/ namespace boost @@ -101,6 +103,26 @@ message containing both expressions. [endsect] +[section BOOST_TEST_CSTR_EQ] + +`` +BOOST_TEST_CSTR_EQ(expr1, expr2) +`` + +Specialization of BOOST_TEST_EQ which interprets expr1 and expr2 as pointers to null-terminated byte strings (C strings). If `std::strcmp(expr1, expr2) != 0`, increase the error count and output a message containing both expressions. + +[endsect] + +[section BOOST_TEST_CSTR_NE] + +`` +BOOST_TEST_CSTR_NE(expr1, expr2) +`` + +Specialization of BOOST_TEST_NE which interprets expr1 and expr2 as pointers to null-terminated byte strings (C strings). If `std::strcmp(expr1, expr2) == 0`, increase the error count and output a message containing both expressions. + +[endsect] + [section BOOST_TEST_THROWS] ``