Add tests for #961

This commit is contained in:
Martin Hořeňovský
2017-08-10 21:38:07 +02:00
parent b435e0d7c7
commit 4f21bb72ff
6 changed files with 160 additions and 9 deletions
+8
View File
@@ -405,3 +405,11 @@ TEST_CASE( "#835 -- errno should not be touched by Catch", "[!shouldfail]" ) {
CHECK(f() == 0);
REQUIRE(errno == 1); // Check that f() doesn't touch errno.
}
TEST_CASE( "#961 -- Dynamically created sections should all be reported", "[.]" ) {
for (char i = '0'; i < '5'; ++i) {
SECTION(std::string("Looped section ") + i) {
SUCCEED( "Everything is OK" );
}
}
}