handle TEST_CASE_METHOD macro consistently

- internally define INTERNAL_CATCH_TEST_CASE_METHOD
This commit is contained in:
Phil Nash
2013-05-14 19:31:21 +01:00
parent 0c5626962a
commit 597ed1f79d
5 changed files with 19 additions and 3 deletions

View File

@@ -320,6 +320,8 @@ struct TestOpt2 {
std::string description;
};
#ifdef CATCH_CONFIG_VARIADIC_MACROS
TEST_CASE( "cmdline", "" ) {
TestOpt config;
@@ -525,3 +527,5 @@ TEST_CASE( "growing new Catch cli" ) {
std::cout << parser << std::endl;
}
#endif

View File

@@ -8,6 +8,8 @@
#include "catch.hpp"
#ifdef CATCH_CONFIG_VARIADIC_MACROS
TEST_CASE()
{
SUCCEED( "anonymous test case" );
@@ -25,3 +27,5 @@ TEST_CASE( "Variadic macros", "[variadic][sections]" )
SUCCEED( "no assertions" );
}
}
#endif