added a subcase test
diff --git a/examples/all_features/subcases.cpp b/examples/all_features/subcases.cpp
index e20a296..8fb49a9 100644
--- a/examples/all_features/subcases.cpp
+++ b/examples/all_features/subcases.cpp
@@ -100,3 +100,16 @@
CHECK(true);
}
}
+
+TEST_CASE("fails from an exception but gets re-entered to traverse all subcases") {
+ SUBCASE("level zero") {
+ SUBCASE("one") {
+ CHECK(false);
+ }
+ SUBCASE("two") {
+ CHECK(false);
+ }
+
+ throw_if(true, "failure... but the show must go on!");
+ }
+}