|
cppx-core
|
#include <boost/test/unit_test.hpp>#include <cppx-core/meta-macro/macro-apply.hpp>#include <cppx-core/meta-macro/macro-repeat.hpp>
Go to the source code of this file.
Macros | |
| #define | begin_test_suite CPPX_BEGIN_TEST_SUITE |
| #define | end_test_suite CPPX_END_TEST_SUITE |
| #define | test_case CPPX_TEST_CASE |
| #define | expect CPPX_EXPECT |
| #define | expect_eq CPPX_EXPECT_EQ |
| #define | require CPPX_REQUIRE |
| #define | require_eq CPPX_REQUIRE_EQ |
| #define | CPPX_BEGIN_TEST_SUITE(...) |
| #define | CPPX_GENERATE_TEST_SUITE_START_(name) BOOST_AUTO_TEST_SUITE( name ); |
| #define | CPPX_END_TEST_SUITE(nesting_level) |
| #define | CPPX_GENERATE_TEST_SUITE_END_() BOOST_AUTO_TEST_SUITE_END(); |
| #define | CPPX_TEST_CASE(testcasename, specificsname) BOOST_AUTO_TEST_CASE( testcasename##_##specificsname ) |
| #define | CPPX_EXPECT(...) CPPX_EXPECT_EXPANSION_HELPER_( CPPX_N_ARGUMENTS( __VA_ARGS__ ), __VA_ARGS__ ) |
| #define | CPPX_EXPECT_EXPANSION_HELPER_(n_args, ...) CPPX_INVOKE_MACRO( CPPX_JOINED( CPPX_EXPECT_, n_args ), ( __VA_ARGS__ ) ) |
| #define | CPPX_EXPECT_1(condition) BOOST_CHECK( condition ) |
| #define | CPPX_EXPECT_2(condition, message_expr) BOOST_CHECK_MESSAGE( condition, message_expr ) |
| #define | CPPX_EXPECT_EQ(...) CPPX_EXPECT_EQ_EXPANSION_HELPER_( CPPX_N_ARGUMENTS( __VA_ARGS__ ), __VA_ARGS__ ) |
| #define | CPPX_EXPECT_EQ_EXPANSION_HELPER_(n_args, ...) CPPX_INVOKE_MACRO( CPPX_JOINED( CPPX_EXPECT_EQ_, n_args ), ( __VA_ARGS__ ) ) |
| #define | CPPX_EXPECT_EQ_2(a, b) BOOST_CHECK_EQUAL( a, b ) |
| #define | CPPX_EXPECT_EQ_3(a, b, message_expr) BOOST_CHECK_MESSAGE( (a) == (b), message_expr ) |
| #define | CPPX_REQUIRE(...) CPPX_REQUIRE_EXPANSION_HELPER_( CPPX_N_ARGUMENTS( __VA_ARGS__ ), __VA_ARGS__ ) |
| #define | CPPX_REQUIRE_EXPANSION_HELPER_(n_args, ...) CPPX_INVOKE_MACRO( CPPX_JOINED( CPPX_REQUIRE_, n_args ), ( __VA_ARGS__ ) ) |
| #define | CPPX_REQUIRE_1(condition) BOOST_REQUIRE( condition ) |
| #define | CPPX_REQUIRE_2(condition, message_expr) BOOST_REQUIRE_MESSAGE( condition, message_expr ) |
| #define | CPPX_REQUIRE_EQ(...) CPPX_REQUIRE_EQ_EXPANSION_HELPER_( CPPX_N_ARGUMENTS( __VA_ARGS__ ), __VA_ARGS__ ) |
| #define | CPPX_REQUIRE_EQ_EXPANSION_HELPER_(n_args, ...) CPPX_INVOKE_MACRO( CPPX_JOINED( CPPX_REQUIRE_EQ_, n_args ), ( __VA_ARGS__ ) ) |
| #define | CPPX_REQUIRE_EQ_2(a, b) BOOST_REQUIRE_EQUAL( a, b ) |
| #define | CPPX_REQUIRE_EQ_3(a, b, message_expr) BOOST_REQUIRE_MESSAGE( (a) == (b), message_expr ) |
| #define begin_test_suite CPPX_BEGIN_TEST_SUITE |
Definition at line 16 of file boost-test-framework.hpp.
| #define CPPX_BEGIN_TEST_SUITE | ( | ... | ) |
Definition at line 38 of file boost-test-framework.hpp.
| #define CPPX_END_TEST_SUITE | ( | nesting_level | ) |
Definition at line 45 of file boost-test-framework.hpp.
| #define CPPX_EXPECT | ( | ... | ) | CPPX_EXPECT_EXPANSION_HELPER_( CPPX_N_ARGUMENTS( __VA_ARGS__ ), __VA_ARGS__ ) |
Definition at line 55 of file boost-test-framework.hpp.
| #define CPPX_EXPECT_1 | ( | condition | ) | BOOST_CHECK( condition ) |
Definition at line 61 of file boost-test-framework.hpp.
| #define CPPX_EXPECT_2 | ( | condition, | |
| message_expr | |||
| ) | BOOST_CHECK_MESSAGE( condition, message_expr ) |
Definition at line 64 of file boost-test-framework.hpp.
| #define CPPX_EXPECT_EQ | ( | ... | ) | CPPX_EXPECT_EQ_EXPANSION_HELPER_( CPPX_N_ARGUMENTS( __VA_ARGS__ ), __VA_ARGS__ ) |
Definition at line 67 of file boost-test-framework.hpp.
| #define CPPX_EXPECT_EQ_2 | ( | a, | |
| b | |||
| ) | BOOST_CHECK_EQUAL( a, b ) |
Definition at line 73 of file boost-test-framework.hpp.
| #define CPPX_EXPECT_EQ_3 | ( | a, | |
| b, | |||
| message_expr | |||
| ) | BOOST_CHECK_MESSAGE( (a) == (b), message_expr ) |
Definition at line 76 of file boost-test-framework.hpp.
| #define CPPX_EXPECT_EQ_EXPANSION_HELPER_ | ( | n_args, | |
| ... | |||
| ) | CPPX_INVOKE_MACRO( CPPX_JOINED( CPPX_EXPECT_EQ_, n_args ), ( __VA_ARGS__ ) ) |
Definition at line 70 of file boost-test-framework.hpp.
| #define CPPX_EXPECT_EXPANSION_HELPER_ | ( | n_args, | |
| ... | |||
| ) | CPPX_INVOKE_MACRO( CPPX_JOINED( CPPX_EXPECT_, n_args ), ( __VA_ARGS__ ) ) |
Definition at line 58 of file boost-test-framework.hpp.
| #define CPPX_GENERATE_TEST_SUITE_END_ | ( | ) | BOOST_AUTO_TEST_SUITE_END(); |
Definition at line 49 of file boost-test-framework.hpp.
| #define CPPX_GENERATE_TEST_SUITE_START_ | ( | name | ) | BOOST_AUTO_TEST_SUITE( name ); |
Definition at line 42 of file boost-test-framework.hpp.
| #define CPPX_REQUIRE | ( | ... | ) | CPPX_REQUIRE_EXPANSION_HELPER_( CPPX_N_ARGUMENTS( __VA_ARGS__ ), __VA_ARGS__ ) |
Definition at line 79 of file boost-test-framework.hpp.
| #define CPPX_REQUIRE_1 | ( | condition | ) | BOOST_REQUIRE( condition ) |
Definition at line 85 of file boost-test-framework.hpp.
| #define CPPX_REQUIRE_2 | ( | condition, | |
| message_expr | |||
| ) | BOOST_REQUIRE_MESSAGE( condition, message_expr ) |
Definition at line 88 of file boost-test-framework.hpp.
| #define CPPX_REQUIRE_EQ | ( | ... | ) | CPPX_REQUIRE_EQ_EXPANSION_HELPER_( CPPX_N_ARGUMENTS( __VA_ARGS__ ), __VA_ARGS__ ) |
Definition at line 91 of file boost-test-framework.hpp.
| #define CPPX_REQUIRE_EQ_2 | ( | a, | |
| b | |||
| ) | BOOST_REQUIRE_EQUAL( a, b ) |
Definition at line 97 of file boost-test-framework.hpp.
| #define CPPX_REQUIRE_EQ_3 | ( | a, | |
| b, | |||
| message_expr | |||
| ) | BOOST_REQUIRE_MESSAGE( (a) == (b), message_expr ) |
Definition at line 100 of file boost-test-framework.hpp.
| #define CPPX_REQUIRE_EQ_EXPANSION_HELPER_ | ( | n_args, | |
| ... | |||
| ) | CPPX_INVOKE_MACRO( CPPX_JOINED( CPPX_REQUIRE_EQ_, n_args ), ( __VA_ARGS__ ) ) |
Definition at line 94 of file boost-test-framework.hpp.
| #define CPPX_REQUIRE_EXPANSION_HELPER_ | ( | n_args, | |
| ... | |||
| ) | CPPX_INVOKE_MACRO( CPPX_JOINED( CPPX_REQUIRE_, n_args ), ( __VA_ARGS__ ) ) |
Definition at line 82 of file boost-test-framework.hpp.
| #define CPPX_TEST_CASE | ( | testcasename, | |
| specificsname | |||
| ) | BOOST_AUTO_TEST_CASE( testcasename##_##specificsname ) |
Definition at line 52 of file boost-test-framework.hpp.
| #define end_test_suite CPPX_END_TEST_SUITE |
Definition at line 17 of file boost-test-framework.hpp.
| #define expect CPPX_EXPECT |
Definition at line 21 of file boost-test-framework.hpp.
| #define expect_eq CPPX_EXPECT_EQ |
Definition at line 22 of file boost-test-framework.hpp.
| #define require CPPX_REQUIRE |
Definition at line 23 of file boost-test-framework.hpp.
| #define require_eq CPPX_REQUIRE_EQ |
Definition at line 24 of file boost-test-framework.hpp.
| #define test_case CPPX_TEST_CASE |
Definition at line 19 of file boost-test-framework.hpp.
1.8.15