Added DYNAMIC_SECTION and implemented GIVEN/ WHEN/ THEN in terms of it
This commit is contained in:
1 parent
1579744ddd
commit
5c0efa1cfc
3 files changed
+16
-13
No files matched your search
@@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user