forked from doctest/doctest
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow escaping backslash with backslash in filters (doctest#614) (doc…
…test#616) * Allow escaping backslash with backslash in filters (doctest#614) * Add test * Strengthen test conditions Co-authored-by: Salvage <[email protected]>
- Loading branch information
Showing
16 changed files
with
183 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[doctest] run with "--help" for options | ||
=============================================================================== | ||
[doctest] test cases: 0 | 0 passed | 0 failed | 96 skipped | ||
[doctest] test cases: 0 | 0 passed | 0 failed | 98 skipped | ||
[doctest] assertions: 0 | 0 passed | 0 failed | | ||
[doctest] Status: SUCCESS! | ||
Program code. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
[doctest] run with "--help" for options | ||
=============================================================================== | ||
subcases.cpp(0): | ||
TEST SUITE: with a funny name, | ||
TEST CASE: with a funnier name\: | ||
with the funniest name\, | ||
|
||
subcases.cpp(0): MESSAGE: Yes! | ||
|
||
=============================================================================== | ||
subcases.cpp(0): | ||
TEST SUITE: with a funny name, | ||
TEST CASE: with a funnier name\: | ||
with a slightly funny name : | ||
|
||
subcases.cpp(0): MESSAGE: Yep! | ||
|
||
=============================================================================== | ||
[doctest] test cases: 1 | 1 passed | 0 failed | | ||
[doctest] assertions: 0 | 0 passed | 0 failed | | ||
[doctest] Status: SUCCESS! | ||
Program code. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<testsuites> | ||
<testsuite name="all_features" errors="0" failures="0" tests="0"> | ||
<testcase classname="subcases.cpp" name="with a funnier name\:/with the funniest name\," status="run"/> | ||
<testcase classname="subcases.cpp" name="with a funnier name\:/with a slightly funny name :" status="run"/> | ||
</testsuite> | ||
</testsuites> | ||
Program code. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<doctest binary="all_features"> | ||
<Options order_by="file" rand_seed="324" first="0" last="4294967295" abort_after="0" subcase_filter_levels="2147483647" case_sensitive="false" no_throw="false" no_skip="false"/> | ||
<TestSuite name="with a funny name,"> | ||
<TestCase name="with a funnier name\:" filename="subcases.cpp" line="0"> | ||
<SubCase name="with the funniest name\," filename="subcases.cpp" line="0"> | ||
<Message type="WARNING" filename="subcases.cpp" line="0"> | ||
<Text> | ||
Yes! | ||
</Text> | ||
</Message> | ||
</SubCase> | ||
<SubCase name="with a slightly funny name :" filename="subcases.cpp" line="0"> | ||
<Message type="WARNING" filename="subcases.cpp" line="0"> | ||
<Text> | ||
Yep! | ||
</Text> | ||
</Message> | ||
</SubCase> | ||
<OverallResultsAsserts successes="0" failures="0" test_case_success="true"/> | ||
</TestCase> | ||
</TestSuite> | ||
<OverallResultsAsserts successes="0" failures="0"/> | ||
<OverallResultsTestCases successes="1" failures="0"/> | ||
</doctest> | ||
Program code. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters