Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/onqtam/doctest.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoronqtam <vik.kirilov@gmail.com>2019-09-22 16:33:47 +0300
committeronqtam <vik.kirilov@gmail.com>2019-09-22 21:14:41 +0300
commit5856bb93a63c43c6562eb2773d9a3d4d6f677f15 (patch)
treef6406fc4809d1ebf79d50345c2da0d06d80887c9 /examples/all_features
parent33cc7f9b622197eaea5d8aeb1fb206d0fe9f039f (diff)
implemented <LEVEL>_THROWS_WITH_AS() assert which combines <LEVEL>_THROWS_WITH with <LEVEL>_THROWS_AS - fixed #295
Diffstat (limited to 'examples/all_features')
-rw-r--r--examples/all_features/assertion_macros.cpp26
-rw-r--r--examples/all_features/doctest_proxy.h4
-rw-r--r--examples/all_features/test_output/assertion_macros.cpp.txt44
-rw-r--r--examples/all_features/test_output/assertion_macros.cpp_xml.txt148
-rw-r--r--examples/all_features/test_output/filter_2.txt2
-rw-r--r--examples/all_features/test_output/filter_2_xml.txt8
6 files changed, 193 insertions, 39 deletions
diff --git a/examples/all_features/assertion_macros.cpp b/examples/all_features/assertion_macros.cpp
index 42b3147a..10c44f18 100644
--- a/examples/all_features/assertion_macros.cpp
+++ b/examples/all_features/assertion_macros.cpp
@@ -36,6 +36,8 @@ TEST_CASE("exceptions-related macros") {
CHECK_THROWS_AS(throw_if(false, 0), int); // fails
CHECK_THROWS_WITH(throw_if(true, "whops!"), "whops! no match!"); // fails
+ CHECK_THROWS_WITH_AS(throw_if(true, "whops!"), "whops! no match!", bool); // fails
+ CHECK_THROWS_WITH_AS(throw_if(true, "whops!"), "whops!", int); // fails
CHECK_NOTHROW(throw_if(true, 0)); // fails
CHECK_NOTHROW(throw_if(false, 0));
@@ -64,6 +66,8 @@ TEST_CASE("WARN level of asserts don't fail the test case") {
WARN_THROWS_WITH(throw_if(false, ""), "whops!");
WARN_THROWS_AS(throw_if(false, 0), bool);
WARN_THROWS_AS(throw_if(true, 0), bool);
+ WARN_THROWS_WITH_AS(throw_if(false, ""), "whops!", int);
+ WARN_THROWS_WITH_AS(throw_if(true, ""), "whops!", int);
WARN_NOTHROW(throw_if(true, 0));
WARN_EQ(1, 0);
@@ -78,6 +82,7 @@ TEST_CASE("CHECK level of asserts fail the test case but don't abort it") {
CHECK_THROWS_AS(throw_if(false, 0), bool);
CHECK_THROWS_AS(throw_if(true, 0), bool);
CHECK_THROWS_WITH(throw_if(true, 0), "unrecognized");
+ CHECK_THROWS_WITH_AS(throw_if(true, 0), "unrecognized", int);
CHECK_NOTHROW(throw_if(true, 0));
CHECK_EQ(1, 0);
@@ -107,27 +112,35 @@ TEST_CASE("REQUIRE level of asserts fail and abort the test case - 5") {
REQUIRE_THROWS_AS(throw_if(true, 0), bool);
MESSAGE("should not be reached!");
}
-TEST_CASE("REQUIRE level of asserts fail and abort the test case - 4") {
+TEST_CASE("REQUIRE level of asserts fail and abort the test case - 6") {
REQUIRE_THROWS_WITH(throw_if(false, ""), "whops!");
MESSAGE("should not be reached!");
}
-TEST_CASE("REQUIRE level of asserts fail and abort the test case - 5") {
+TEST_CASE("REQUIRE level of asserts fail and abort the test case - 7") {
REQUIRE_THROWS_WITH(throw_if(true, ""), "whops!");
MESSAGE("should not be reached!");
}
-TEST_CASE("REQUIRE level of asserts fail and abort the test case - 6") {
+TEST_CASE("REQUIRE level of asserts fail and abort the test case - 8") {
+ REQUIRE_THROWS_WITH_AS(throw_if(false, ""), "whops!", bool);
+ MESSAGE("should not be reached!");
+}
+TEST_CASE("REQUIRE level of asserts fail and abort the test case - 9") {
+ REQUIRE_THROWS_WITH_AS(throw_if(true, ""), "whops!", bool);
+ MESSAGE("should not be reached!");
+}
+TEST_CASE("REQUIRE level of asserts fail and abort the test case - 10") {
REQUIRE_NOTHROW(throw_if(true, 0));
MESSAGE("should not be reached!");
}
-TEST_CASE("REQUIRE level of asserts fail and abort the test case - 7") {
+TEST_CASE("REQUIRE level of asserts fail and abort the test case - 11") {
REQUIRE_EQ(1, 0);
MESSAGE("should not be reached!");
}
-TEST_CASE("REQUIRE level of asserts fail and abort the test case - 8") {
+TEST_CASE("REQUIRE level of asserts fail and abort the test case - 12") {
REQUIRE_UNARY(0);
MESSAGE("should not be reached!");
}
-TEST_CASE("REQUIRE level of asserts fail and abort the test case - 9") {
+TEST_CASE("REQUIRE level of asserts fail and abort the test case - 13") {
REQUIRE_UNARY_FALSE(1);
MESSAGE("should not be reached!");
}
@@ -167,6 +180,7 @@ static void someAssertsInFunction() {
CHECK_THROWS(throw_if(true, 0));
CHECK_THROWS_AS(throw_if(true, 0), int);
CHECK_THROWS_WITH(throw_if(true, false), "unknown exception");
+ CHECK_THROWS_WITH_AS(throw_if(true, false), "unknown exception", int);
CHECK_NOTHROW(throw_if(false, 0));
CHECK_EQ(a, b);
diff --git a/examples/all_features/doctest_proxy.h b/examples/all_features/doctest_proxy.h
index dccaf4b3..396d673d 100644
--- a/examples/all_features/doctest_proxy.h
+++ b/examples/all_features/doctest_proxy.h
@@ -20,18 +20,20 @@
#define my_warn_throws DOCTEST_WARN_THROWS
#define my_warn_throws_as DOCTEST_WARN_THROWS_AS
#define my_warn_throws_with DOCTEST_WARN_THROWS_WITH
+#define my_warn_throws_with_as DOCTEST_WARN_THROWS_WITH_AS
#define my_warn_nothrow DOCTEST_WARN_NOTHROW
#define my_check DOCTEST_CHECK
#define my_check_false DOCTEST_CHECK_FALSE
#define my_check_throws DOCTEST_CHECK_THROWS
#define my_check_throws_as DOCTEST_CHECK_THROWS_AS
#define my_check_throws_with DOCTEST_CHECK_THROWS_WITH
+#define my_check_throws_with_as DOCTEST_CHECK_THROWS_WITH_AS
#define my_check_nothrow DOCTEST_CHECK_NOTHROW
#define my_require DOCTEST_REQUIRE
#define my_require_false DOCTEST_REQUIRE_FALSE
#define my_require_throws DOCTEST_REQUIRE_THROWS
#define my_require_throws_as DOCTEST_REQUIRE_THROWS_AS
-#define my_require_throws_with DOCTEST_REQUIRE_THROWS_WITH
+#define my_require_throws_with_as DOCTEST_REQUIRE_THROWS_WITH_AS
#define my_require_nothrow DOCTEST_REQUIRE_NOTHROW
#define my_scenario DOCTEST_SCENARIO
diff --git a/examples/all_features/test_output/assertion_macros.cpp.txt b/examples/all_features/test_output/assertion_macros.cpp.txt
index 32e1b302..5de0e29e 100644
--- a/examples/all_features/test_output/assertion_macros.cpp.txt
+++ b/examples/all_features/test_output/assertion_macros.cpp.txt
@@ -20,6 +20,10 @@ assertion_macros.cpp(0): ERROR: CHECK_THROWS_AS( throw_if(false, 0), int ) did N
assertion_macros.cpp(0): ERROR: CHECK_THROWS_WITH( throw_if(true, "whops!"), "whops! no match!" ) threw a DIFFERENT exception: "whops!"
+assertion_macros.cpp(0): ERROR: CHECK_THROWS_WITH_AS( throw_if(true, "whops!"), "whops! no match!", bool ) threw a DIFFERENT exception! (contents: "whops!")
+
+assertion_macros.cpp(0): ERROR: CHECK_THROWS_WITH_AS( throw_if(true, "whops!"), "whops!", int ) threw a DIFFERENT exception! (contents: "whops!")
+
assertion_macros.cpp(0): ERROR: CHECK_NOTHROW( throw_if(true, 0) ) THREW exception: "0"
===============================================================================
@@ -56,6 +60,10 @@ assertion_macros.cpp(0): WARNING: WARN_THROWS_AS( throw_if(false, 0), bool ) did
assertion_macros.cpp(0): WARNING: WARN_THROWS_AS( throw_if(true, 0), bool ) threw a DIFFERENT exception: "0"
+assertion_macros.cpp(0): WARNING: WARN_THROWS_WITH_AS( throw_if(false, ""), "whops!", int ) did NOT throw at all!
+
+assertion_macros.cpp(0): WARNING: WARN_THROWS_WITH_AS( throw_if(true, ""), "whops!", int ) threw a DIFFERENT exception! (contents: )
+
assertion_macros.cpp(0): WARNING: WARN_NOTHROW( throw_if(true, 0) ) THREW exception: "0"
assertion_macros.cpp(0): WARNING: WARN_EQ( 1, 0 ) is NOT correct!
@@ -85,6 +93,8 @@ assertion_macros.cpp(0): ERROR: CHECK_THROWS_AS( throw_if(true, 0), bool ) threw
assertion_macros.cpp(0): ERROR: CHECK_THROWS_WITH( throw_if(true, 0), "unrecognized" ) threw a DIFFERENT exception: "0"
+assertion_macros.cpp(0): ERROR: CHECK_THROWS_WITH_AS( throw_if(true, 0), "unrecognized", int ) threw a DIFFERENT exception! (contents: "0")
+
assertion_macros.cpp(0): ERROR: CHECK_NOTHROW( throw_if(true, 0) ) THREW exception: "0"
assertion_macros.cpp(0): ERROR: CHECK_EQ( 1, 0 ) is NOT correct!
@@ -132,45 +142,63 @@ assertion_macros.cpp(0): FATAL ERROR: REQUIRE_THROWS_AS( throw_if(true, 0), bool
===============================================================================
assertion_macros.cpp(0):
-TEST CASE: REQUIRE level of asserts fail and abort the test case - 4
+TEST CASE: REQUIRE level of asserts fail and abort the test case - 6
assertion_macros.cpp(0): FATAL ERROR: REQUIRE_THROWS_WITH( throw_if(false, ""), "whops!" ) did NOT throw at all!
===============================================================================
assertion_macros.cpp(0):
-TEST CASE: REQUIRE level of asserts fail and abort the test case - 5
+TEST CASE: REQUIRE level of asserts fail and abort the test case - 7
assertion_macros.cpp(0): FATAL ERROR: REQUIRE_THROWS_WITH( throw_if(true, ""), "whops!" ) threw a DIFFERENT exception:
===============================================================================
assertion_macros.cpp(0):
-TEST CASE: REQUIRE level of asserts fail and abort the test case - 6
+TEST CASE: REQUIRE level of asserts fail and abort the test case - 8
+
+assertion_macros.cpp(0): FATAL ERROR: REQUIRE_THROWS_WITH_AS( throw_if(false, ""), "whops!", bool ) did NOT throw at all!
+
+===============================================================================
+assertion_macros.cpp(0):
+TEST CASE: REQUIRE level of asserts fail and abort the test case - 9
+
+assertion_macros.cpp(0): FATAL ERROR: REQUIRE_THROWS_WITH_AS( throw_if(true, ""), "whops!", bool ) threw a DIFFERENT exception! (contents: )
+
+===============================================================================
+assertion_macros.cpp(0):
+TEST CASE: REQUIRE level of asserts fail and abort the test case - 10
assertion_macros.cpp(0): FATAL ERROR: REQUIRE_NOTHROW( throw_if(true, 0) ) THREW exception: "0"
===============================================================================
assertion_macros.cpp(0):
-TEST CASE: REQUIRE level of asserts fail and abort the test case - 7
+TEST CASE: REQUIRE level of asserts fail and abort the test case - 11
assertion_macros.cpp(0): FATAL ERROR: REQUIRE_EQ( 1, 0 ) is NOT correct!
values: REQUIRE_EQ( 1, 0 )
===============================================================================
assertion_macros.cpp(0):
-TEST CASE: REQUIRE level of asserts fail and abort the test case - 8
+TEST CASE: REQUIRE level of asserts fail and abort the test case - 12
assertion_macros.cpp(0): FATAL ERROR: REQUIRE_UNARY( 0 ) is NOT correct!
values: REQUIRE_UNARY( 0 )
===============================================================================
assertion_macros.cpp(0):
-TEST CASE: REQUIRE level of asserts fail and abort the test case - 9
+TEST CASE: REQUIRE level of asserts fail and abort the test case - 13
assertion_macros.cpp(0): FATAL ERROR: REQUIRE_UNARY_FALSE( 1 ) is NOT correct!
values: REQUIRE_UNARY_FALSE( 1 )
===============================================================================
-[doctest] test cases: 19 | 4 passed | 15 failed |
-[doctest] assertions: 68 | 35 passed | 33 failed |
+assertion_macros.cpp(0):
+TEST CASE: some asserts used in a function called by a test case
+
+assertion_macros.cpp(0): ERROR: CHECK_THROWS_WITH_AS( throw_if(true, false), "unknown exception", int ) threw a DIFFERENT exception! (contents: "unknown exception")
+
+===============================================================================
+[doctest] test cases: 21 | 3 passed | 18 failed |
+[doctest] assertions: 74 | 35 passed | 39 failed |
[doctest] Status: FAILURE!
Program code.
diff --git a/examples/all_features/test_output/assertion_macros.cpp_xml.txt b/examples/all_features/test_output/assertion_macros.cpp_xml.txt
index 6fe4cdd5..29234f3b 100644
--- a/examples/all_features/test_output/assertion_macros.cpp_xml.txt
+++ b/examples/all_features/test_output/assertion_macros.cpp_xml.txt
@@ -56,9 +56,37 @@
<Exception>
"whops!"
</Exception>
+ <ExpectedExceptionString>
+ whops! no match!
+ </ExpectedExceptionString>
+ </Expression>
+ <Expression success="false" type="CHECK_THROWS_WITH_AS" filename="assertion_macros.cpp" line="0">
+ <Original>
+ throw_if(true, "whops!")
+ </Original>
+ <Exception>
+ "whops!"
+ </Exception>
<ExpectedException>
+ bool
+ </ExpectedException>
+ <ExpectedExceptionString>
whops! no match!
+ </ExpectedExceptionString>
+ </Expression>
+ <Expression success="false" type="CHECK_THROWS_WITH_AS" filename="assertion_macros.cpp" line="0">
+ <Original>
+ throw_if(true, "whops!")
+ </Original>
+ <Exception>
+ "whops!"
+ </Exception>
+ <ExpectedException>
+ int
</ExpectedException>
+ <ExpectedExceptionString>
+ whops!
+ </ExpectedExceptionString>
</Expression>
<Expression success="false" type="CHECK_NOTHROW" filename="assertion_macros.cpp" line="0">
<Original>
@@ -68,7 +96,7 @@
"0"
</Exception>
</Expression>
- <OverallResultsAsserts successes="3" failures="5"/>
+ <OverallResultsAsserts successes="3" failures="7"/>
</TestCase>
<TestCase name="exceptions-related macros for std::exception" filename="assertion_macros.cpp" line="0">
<Expression success="false" type="CHECK_THROWS" filename="assertion_macros.cpp" line="0">
@@ -99,9 +127,9 @@
<Original>
throw_if(false, "")
</Original>
- <ExpectedException>
+ <ExpectedExceptionString>
whops!
- </ExpectedException>
+ </ExpectedExceptionString>
</Expression>
<Expression success="false" type="REQUIRE_NOTHROW" filename="assertion_macros.cpp" line="0">
<Original>
@@ -140,17 +168,17 @@
throw_if(true, "")
</Original>
<Exception/>
- <ExpectedException>
+ <ExpectedExceptionString>
whops!
- </ExpectedException>
+ </ExpectedExceptionString>
</Expression>
<Expression success="false" type="WARN_THROWS_WITH" filename="assertion_macros.cpp" line="0">
<Original>
throw_if(false, "")
</Original>
- <ExpectedException>
+ <ExpectedExceptionString>
whops!
- </ExpectedException>
+ </ExpectedExceptionString>
</Expression>
<Expression success="false" type="WARN_THROWS_AS" filename="assertion_macros.cpp" line="0">
<Original>
@@ -171,6 +199,29 @@
bool
</ExpectedException>
</Expression>
+ <Expression success="false" type="WARN_THROWS_WITH_AS" filename="assertion_macros.cpp" line="0">
+ <Original>
+ throw_if(false, "")
+ </Original>
+ <ExpectedException>
+ int
+ </ExpectedException>
+ <ExpectedExceptionString>
+ whops!
+ </ExpectedExceptionString>
+ </Expression>
+ <Expression success="false" type="WARN_THROWS_WITH_AS" filename="assertion_macros.cpp" line="0">
+ <Original>
+ throw_if(true, "")
+ </Original>
+ <Exception/>
+ <ExpectedException>
+ int
+ </ExpectedException>
+ <ExpectedExceptionString>
+ whops!
+ </ExpectedExceptionString>
+ </Expression>
<Expression success="false" type="WARN_NOTHROW" filename="assertion_macros.cpp" line="0">
<Original>
throw_if(true, 0)
@@ -253,9 +304,23 @@
<Exception>
"0"
</Exception>
- <ExpectedException>
+ <ExpectedExceptionString>
unrecognized
+ </ExpectedExceptionString>
+ </Expression>
+ <Expression success="false" type="CHECK_THROWS_WITH_AS" filename="assertion_macros.cpp" line="0">
+ <Original>
+ throw_if(true, 0)
+ </Original>
+ <Exception>
+ "0"
+ </Exception>
+ <ExpectedException>
+ int
</ExpectedException>
+ <ExpectedExceptionString>
+ unrecognized
+ </ExpectedExceptionString>
</Expression>
<Expression success="false" type="CHECK_NOTHROW" filename="assertion_macros.cpp" line="0">
<Original>
@@ -294,7 +359,7 @@
reached!
</Text>
</Message>
- <OverallResultsAsserts successes="0" failures="10"/>
+ <OverallResultsAsserts successes="0" failures="11"/>
</TestCase>
<TestCase name="REQUIRE level of asserts fail and abort the test case - 1" filename="assertion_macros.cpp" line="0">
<Expression success="false" type="REQUIRE" filename="assertion_macros.cpp" line="0">
@@ -351,30 +416,59 @@
</Expression>
<OverallResultsAsserts successes="0" failures="1"/>
</TestCase>
- <TestCase name="REQUIRE level of asserts fail and abort the test case - 4" filename="assertion_macros.cpp" line="0">
+ <TestCase name="REQUIRE level of asserts fail and abort the test case - 6" filename="assertion_macros.cpp" line="0">
<Expression success="false" type="REQUIRE_THROWS_WITH" filename="assertion_macros.cpp" line="0">
<Original>
throw_if(false, "")
</Original>
- <ExpectedException>
+ <ExpectedExceptionString>
whops!
- </ExpectedException>
+ </ExpectedExceptionString>
</Expression>
<OverallResultsAsserts successes="0" failures="1"/>
</TestCase>
- <TestCase name="REQUIRE level of asserts fail and abort the test case - 5" filename="assertion_macros.cpp" line="0">
+ <TestCase name="REQUIRE level of asserts fail and abort the test case - 7" filename="assertion_macros.cpp" line="0">
<Expression success="false" type="REQUIRE_THROWS_WITH" filename="assertion_macros.cpp" line="0">
<Original>
throw_if(true, "")
</Original>
<Exception/>
+ <ExpectedExceptionString>
+ whops!
+ </ExpectedExceptionString>
+ </Expression>
+ <OverallResultsAsserts successes="0" failures="1"/>
+ </TestCase>
+ <TestCase name="REQUIRE level of asserts fail and abort the test case - 8" filename="assertion_macros.cpp" line="0">
+ <Expression success="false" type="REQUIRE_THROWS_WITH_AS" filename="assertion_macros.cpp" line="0">
+ <Original>
+ throw_if(false, "")
+ </Original>
<ExpectedException>
+ bool
+ </ExpectedException>
+ <ExpectedExceptionString>
whops!
+ </ExpectedExceptionString>
+ </Expression>
+ <OverallResultsAsserts successes="0" failures="1"/>
+ </TestCase>
+ <TestCase name="REQUIRE level of asserts fail and abort the test case - 9" filename="assertion_macros.cpp" line="0">
+ <Expression success="false" type="REQUIRE_THROWS_WITH_AS" filename="assertion_macros.cpp" line="0">
+ <Original>
+ throw_if(true, "")
+ </Original>
+ <Exception/>
+ <ExpectedException>
+ bool
</ExpectedException>
+ <ExpectedExceptionString>
+ whops!
+ </ExpectedExceptionString>
</Expression>
<OverallResultsAsserts successes="0" failures="1"/>
</TestCase>
- <TestCase name="REQUIRE level of asserts fail and abort the test case - 6" filename="assertion_macros.cpp" line="0">
+ <TestCase name="REQUIRE level of asserts fail and abort the test case - 10" filename="assertion_macros.cpp" line="0">
<Expression success="false" type="REQUIRE_NOTHROW" filename="assertion_macros.cpp" line="0">
<Original>
throw_if(true, 0)
@@ -385,7 +479,7 @@
</Expression>
<OverallResultsAsserts successes="0" failures="1"/>
</TestCase>
- <TestCase name="REQUIRE level of asserts fail and abort the test case - 7" filename="assertion_macros.cpp" line="0">
+ <TestCase name="REQUIRE level of asserts fail and abort the test case - 11" filename="assertion_macros.cpp" line="0">
<Expression success="false" type="REQUIRE_EQ" filename="assertion_macros.cpp" line="0">
<Original>
1, 0
@@ -396,7 +490,7 @@
</Expression>
<OverallResultsAsserts successes="0" failures="1"/>
</TestCase>
- <TestCase name="REQUIRE level of asserts fail and abort the test case - 8" filename="assertion_macros.cpp" line="0">
+ <TestCase name="REQUIRE level of asserts fail and abort the test case - 12" filename="assertion_macros.cpp" line="0">
<Expression success="false" type="REQUIRE_UNARY" filename="assertion_macros.cpp" line="0">
<Original>
0
@@ -407,7 +501,7 @@
</Expression>
<OverallResultsAsserts successes="0" failures="1"/>
</TestCase>
- <TestCase name="REQUIRE level of asserts fail and abort the test case - 9" filename="assertion_macros.cpp" line="0">
+ <TestCase name="REQUIRE level of asserts fail and abort the test case - 13" filename="assertion_macros.cpp" line="0">
<Expression success="false" type="REQUIRE_UNARY_FALSE" filename="assertion_macros.cpp" line="0">
<Original>
1
@@ -422,10 +516,24 @@
<OverallResultsAsserts successes="16" failures="0"/>
</TestCase>
<TestCase name="some asserts used in a function called by a test case" filename="assertion_macros.cpp" line="0">
- <OverallResultsAsserts successes="9" failures="0"/>
+ <Expression success="false" type="CHECK_THROWS_WITH_AS" filename="assertion_macros.cpp" line="0">
+ <Original>
+ throw_if(true, false)
+ </Original>
+ <Exception>
+ "unknown exception"
+ </Exception>
+ <ExpectedException>
+ int
+ </ExpectedException>
+ <ExpectedExceptionString>
+ unknown exception
+ </ExpectedExceptionString>
+ </Expression>
+ <OverallResultsAsserts successes="9" failures="1"/>
</TestCase>
</TestSuite>
- <OverallResultsAsserts successes="35" failures="33"/>
- <OverallResultsTestCases successes="4" failures="15"/>
+ <OverallResultsAsserts successes="35" failures="39"/>
+ <OverallResultsTestCases successes="3" failures="18"/>
</doctest>
Program code.
diff --git a/examples/all_features/test_output/filter_2.txt b/examples/all_features/test_output/filter_2.txt
index fc435a46..2c565bb1 100644
--- a/examples/all_features/test_output/filter_2.txt
+++ b/examples/all_features/test_output/filter_2.txt
@@ -1,6 +1,6 @@
[doctest] run with "--help" for options
===============================================================================
-[doctest] test cases: 0 | 0 passed | 0 failed | 74 skipped
+[doctest] test cases: 0 | 0 passed | 0 failed | 76 skipped
[doctest] assertions: 0 | 0 passed | 0 failed |
[doctest] Status: SUCCESS!
Program code.
diff --git a/examples/all_features/test_output/filter_2_xml.txt b/examples/all_features/test_output/filter_2_xml.txt
index 8873c226..4a6a03a1 100644
--- a/examples/all_features/test_output/filter_2_xml.txt
+++ b/examples/all_features/test_output/filter_2_xml.txt
@@ -5,11 +5,13 @@
<TestCase name=" Scenario: vectors can be sized and resized" filename="subcases.cpp" line="0" skipped="true"/>
<TestCase name="CHECK level of asserts fail the test case but don't abort it" filename="assertion_macros.cpp" line="0" skipped="true"/>
<TestCase name="REQUIRE level of asserts fail and abort the test case - 1" filename="assertion_macros.cpp" line="0" skipped="true"/>
+ <TestCase name="REQUIRE level of asserts fail and abort the test case - 10" filename="assertion_macros.cpp" line="0" skipped="true"/>
+ <TestCase name="REQUIRE level of asserts fail and abort the test case - 11" filename="assertion_macros.cpp" line="0" skipped="true"/>
+ <TestCase name="REQUIRE level of asserts fail and abort the test case - 12" filename="assertion_macros.cpp" line="0" skipped="true"/>
+ <TestCase name="REQUIRE level of asserts fail and abort the test case - 13" filename="assertion_macros.cpp" line="0" skipped="true"/>
<TestCase name="REQUIRE level of asserts fail and abort the test case - 2" filename="assertion_macros.cpp" line="0" skipped="true"/>
<TestCase name="REQUIRE level of asserts fail and abort the test case - 3" filename="assertion_macros.cpp" line="0" skipped="true"/>
<TestCase name="REQUIRE level of asserts fail and abort the test case - 4" filename="assertion_macros.cpp" line="0" skipped="true"/>
- <TestCase name="REQUIRE level of asserts fail and abort the test case - 4" filename="assertion_macros.cpp" line="0" skipped="true"/>
- <TestCase name="REQUIRE level of asserts fail and abort the test case - 5" filename="assertion_macros.cpp" line="0" skipped="true"/>
<TestCase name="REQUIRE level of asserts fail and abort the test case - 5" filename="assertion_macros.cpp" line="0" skipped="true"/>
<TestCase name="REQUIRE level of asserts fail and abort the test case - 6" filename="assertion_macros.cpp" line="0" skipped="true"/>
<TestCase name="REQUIRE level of asserts fail and abort the test case - 7" filename="assertion_macros.cpp" line="0" skipped="true"/>
@@ -112,6 +114,6 @@
<TestCase name="will end from an unknown exception" filename="coverage_maxout.cpp" line="0" skipped="true"/>
</TestSuite>
<OverallResultsAsserts successes="0" failures="0"/>
- <OverallResultsTestCases successes="0" failures="0" skipped="74"/>
+ <OverallResultsTestCases successes="0" failures="0" skipped="76"/>
</doctest>
Program code.