Added DYNAMIC_SECTION and implemented GIVEN/ WHEN/ THEN in terms of it

This commit is contained in:
Phil Nash
2018-06-25 19:19:21 +01:00
parent 1579744ddd
commit 5c0efa1cfc
3 changed files with 16 additions and 13 deletions

View File

@@ -129,9 +129,7 @@ TEST_CASE( "looped SECTION tests", "[.][failing][sections]" ) {
int a = 1;
for( int b = 0; b < 10; ++b ) {
std::ostringstream oss;
oss << "b is currently: " << b;
SECTION( oss.str() ) {
DYNAMIC_SECTION( "b is currently: " << b ) {
CHECK( b > a );
}
}