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.
* Fix doctest#508 * Missed warning suppression
- Loading branch information
Showing
15 changed files
with
94 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#define DOCTEST_CONFIG_DOUBLE_STRINGIFY | ||
#include <doctest_fwd.h> | ||
|
||
DOCTEST_MAKE_STD_HEADERS_CLEAN_FROM_WARNINGS_ON_WALL_BEGIN | ||
#include <string> | ||
DOCTEST_MAKE_STD_HEADERS_CLEAN_FROM_WARNINGS_ON_WALL_END | ||
|
||
namespace App { | ||
struct Foo { }; | ||
static std::string toString(Foo*) { return "Foo"; } | ||
} | ||
|
||
TEST_CASE("toString std::string ret type") { | ||
App::Foo foo; | ||
CHECK(&foo != nullptr); | ||
CHECK_NE(&foo, nullptr); | ||
CHECK(&foo); | ||
} |
6 changes: 6 additions & 0 deletions
6
examples/all_features/test_output/double_stringification.cpp.txt
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,6 @@ | ||
[doctest] run with "--help" for options | ||
=============================================================================== | ||
[doctest] test cases: 1 | 1 passed | 0 failed | | ||
[doctest] assertions: 3 | 3 passed | 0 failed | | ||
[doctest] Status: SUCCESS! | ||
Program code. |
7 changes: 7 additions & 0 deletions
7
examples/all_features/test_output/double_stringification.cpp_junit.txt
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,7 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<testsuites> | ||
<testsuite name="all_features" errors="0" failures="0" tests="3"> | ||
<testcase classname="double_stringification.cpp" name="toString std::string ret type" status="run"/> | ||
</testsuite> | ||
</testsuites> | ||
Program code. |
12 changes: 12 additions & 0 deletions
12
examples/all_features/test_output/double_stringification.cpp_xml.txt
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,12 @@ | ||
<?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> | ||
<TestCase name="toString std::string ret type" filename="double_stringification.cpp" line="0"> | ||
<OverallResultsAsserts successes="3" failures="0" test_case_success="true"/> | ||
</TestCase> | ||
</TestSuite> | ||
<OverallResultsAsserts successes="3" 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
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 | 102 skipped | ||
[doctest] test cases: 0 | 0 passed | 0 failed | 103 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
3 changes: 2 additions & 1 deletion
3
examples/all_features/test_output/stringification.cpp_junit.txt
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