mirror of
https://github.com/catchorg/Catch2.git
synced 2025-05-28 23:49:28 +00:00
Initial support for variadic macros
This commit is contained in:
parent
9c5bbab239
commit
c0b698073e
6 changed files with 163 additions and 63 deletions
28
projects/SelfTest/VariadicMacrosTests.cpp
Normal file
28
projects/SelfTest/VariadicMacrosTests.cpp
Normal file
|
@ -0,0 +1,28 @@
|
|||
/*
|
||||
* Created by Phil on 15/03/2013.
|
||||
* Copyright 2013 Two Blue Cubes Ltd. All rights reserved.
|
||||
*
|
||||
* Distributed under the Boost Software License, Version 1.0. (See accompanying
|
||||
* file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
*/
|
||||
|
||||
//#define CATCH_CONFIG_VARIADIC_MACROS
|
||||
#include "catch.hpp"
|
||||
|
||||
TEST_CASE()
|
||||
{
|
||||
SUCCEED( "anonymous test case" );
|
||||
}
|
||||
|
||||
TEST_CASE( "Test case with one argument" )
|
||||
{
|
||||
SUCCEED( "no assertions" );
|
||||
}
|
||||
|
||||
TEST_CASE( "Variadic macros", "[variadic][sections]" )
|
||||
{
|
||||
SECTION( "Section with one argument" )
|
||||
{
|
||||
SUCCEED( "no assertions" );
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue