mirror of
https://github.com/catchorg/Catch2.git
synced 2025-08-01 21:05:39 +02:00
handle TEST_CASE_METHOD macro consistently
- internally define INTERNAL_CATCH_TEST_CASE_METHOD
This commit is contained in:
@@ -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
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user