mirror of
https://github.com/boostorg/core.git
synced 2025-05-12 05:31:40 +00:00
adding documentation for new test macros
This commit is contained in:
parent
7038296c15
commit
fe137b97c3
@ -36,6 +36,8 @@ When using `lightweight_test.hpp`, *do not forget* to
|
|||||||
#define BOOST_ERROR(message) /*unspecified*/
|
#define BOOST_ERROR(message) /*unspecified*/
|
||||||
#define BOOST_TEST_EQ(expr1, expr2) /*unspecified*/
|
#define BOOST_TEST_EQ(expr1, expr2) /*unspecified*/
|
||||||
#define BOOST_TEST_NE(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*/
|
#define BOOST_TEST_THROWS(expr, excep) /*unspecified*/
|
||||||
|
|
||||||
namespace boost
|
namespace boost
|
||||||
@ -101,6 +103,26 @@ message containing both expressions.
|
|||||||
|
|
||||||
[endsect]
|
[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]
|
[section BOOST_TEST_THROWS]
|
||||||
|
|
||||||
``
|
``
|
||||||
|
Loading…
x
Reference in New Issue
Block a user