catch3
Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.
Clonegit clone https://git.progmasoft.com/catch3
Remove obsolete test
- Commit
4846ad59e10e6174df1c4679cfef5bc80fe3f5d7- Author
- Martin Hořeňovský ·
- Parents
ff2b3c85a7fa
Changes
.../SelfTest/Baselines/compact.sw.approved.txt | 1 - .../SelfTest/Baselines/console.std.approved.txt | 4 ++-- .../SelfTest/Baselines/console.sw.approved.txt | 16 ++-------------- projects/SelfTest/Baselines/junit.sw.approved.txt | 3 +-- projects/SelfTest/Baselines/xml.sw.approved.txt | 15 ++------------- projects/SelfTest/UsageTests/Tricky.tests.cpp | 22 +--------------------- 6 files changed, 8 insertions(+), 53 deletions(-) diff --git a/projects/SelfTest/Baselines/compact.sw.approved.txt b/projects/SelfTest/Baselines/compact.sw.approved.txt index 89db0837..7780a5cc 100644 --- a/projects/SelfTest/Baselines/compact.sw.approved.txt +++ b/projects/SelfTest/Baselines/compact.sw.approved.txt @@ -520,7 +520,6 @@ CmdLine.tests.cpp:<line number>: passed: spec.matches( tcA ) == false for: false CmdLine.tests.cpp:<line number>: passed: spec.matches( tcB ) == false for: false == false CmdLine.tests.cpp:<line number>: passed: spec.matches( tcC ) == false for: false == false CmdLine.tests.cpp:<line number>: passed: spec.matches( tcD ) == true for: true == true -Tricky.tests.cpp:<line number>: passed: (std::pair<int, int>( 1, 2 )) == aNicePair for: {?} == {?} Condition.tests.cpp:<line number>: passed: p == 0 for: 0 == 0 Condition.tests.cpp:<line number>: passed: p == pNULL for: 0 == 0 Condition.tests.cpp:<line number>: passed: p != 0 for: 0x<hex digits> != 0 diff --git a/projects/SelfTest/Baselines/console.std.approved.txt b/projects/SelfTest/Baselines/console.std.approved.txt index 4a2554c2..208b1afd 100644 --- a/projects/SelfTest/Baselines/console.std.approved.txt +++ b/projects/SelfTest/Baselines/console.std.approved.txt @@ -1096,6 +1096,6 @@ due to unexpected exception with message: Why would you throw a std::string? =============================================================================== -test cases: 208 | 155 passed | 49 failed | 4 failed as expected -assertions: 1074 | 945 passed | 108 failed | 21 failed as expected +test cases: 207 | 154 passed | 49 failed | 4 failed as expected +assertions: 1073 | 944 passed | 108 failed | 21 failed as expected diff --git a/projects/SelfTest/Baselines/console.sw.approved.txt b/projects/SelfTest/Baselines/console.sw.approved.txt index 161fa23f..123abae5 100644 --- a/projects/SelfTest/Baselines/console.sw.approved.txt +++ b/projects/SelfTest/Baselines/console.sw.approved.txt @@ -3993,18 +3993,6 @@ PASSED: with expansion: true == true -------------------------------------------------------------------------------- -Parsing a std::pair -------------------------------------------------------------------------------- -Tricky.tests.cpp:<line number> -............................................................................... - -Tricky.tests.cpp:<line number>: -PASSED: - REQUIRE( (std::pair<int, int>( 1, 2 )) == aNicePair ) -with expansion: - {?} == {?} - ------------------------------------------------------------------------------- Pointers can be compared to null ------------------------------------------------------------------------------- @@ -9110,6 +9098,6 @@ Misc.tests.cpp:<line number>: PASSED: =============================================================================== -test cases: 208 | 142 passed | 62 failed | 4 failed as expected -assertions: 1088 | 945 passed | 122 failed | 21 failed as expected +test cases: 207 | 141 passed | 62 failed | 4 failed as expected +assertions: 1087 | 944 passed | 122 failed | 21 failed as expected diff --git a/projects/SelfTest/Baselines/junit.sw.approved.txt b/projects/SelfTest/Baselines/junit.sw.approved.txt index 8dd50adf..c5ad4596 100644 --- a/projects/SelfTest/Baselines/junit.sw.approved.txt +++ b/projects/SelfTest/Baselines/junit.sw.approved.txt @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> <testsuitesloose text artifact > - <testsuite name="<exe-name>" errors="17" failures="106" tests="1089" hostname="tbd" time="{duration}" timestamp="{iso8601-timestamp}"> + <testsuite name="<exe-name>" errors="17" failures="106" tests="1088" hostname="tbd" time="{duration}" timestamp="{iso8601-timestamp}"> <testcase classname="<exe-name>.global" name="# A test name that starts with a #" time="{duration}"/> <testcase classname="<exe-name>.global" name="#1005: Comparing pointer to int and long (NULL can be either on various systems)" time="{duration}"/> <testcase classname="<exe-name>.global" name="#1027" time="{duration}"/> @@ -467,7 +467,6 @@ Message.tests.cpp:<line number> <testcase classname="<exe-name>.global" name="Parse test names and tags/empty tag" time="{duration}"/> <testcase classname="<exe-name>.global" name="Parse test names and tags/empty quoted name" time="{duration}"/> <testcase classname="<exe-name>.global" name="Parse test names and tags/quoted string followed by tag exclusion" time="{duration}"/> - <testcase classname="<exe-name>.global" name="Parsing a std::pair" time="{duration}"/> <testcase classname="<exe-name>.global" name="Pointers can be compared to null" time="{duration}"/> <testcase classname="<exe-name>.global" name="Process can be configured on command line/empty args don't cause a crash" time="{duration}"/> <testcase classname="<exe-name>.global" name="Process can be configured on command line/default - no arguments" time="{duration}"/> diff --git a/projects/SelfTest/Baselines/xml.sw.approved.txt b/projects/SelfTest/Baselines/xml.sw.approved.txt index 43534b18..268537cb 100644 --- a/projects/SelfTest/Baselines/xml.sw.approved.txt +++ b/projects/SelfTest/Baselines/xml.sw.approved.txt @@ -4650,17 +4650,6 @@ </Section> <OverallResult success="true"/> </TestCase> - <TestCase name="Parsing a std::pair" tags="[Tricky][std::pair]" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" > - <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Tricky.tests.cpp" > - <Original> - (std::pair<int, int>( 1, 2 )) == aNicePair - </Original> - <Expanded> - {?} == {?} - </Expanded> - </Expression> - <OverallResult success="true"/> - </TestCase> <TestCase name="Pointers can be compared to null" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" > <Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Condition.tests.cpp" > <Original> @@ -10035,7 +10024,7 @@ loose text artifact </Section> <OverallResult success="true"/> </TestCase> - <OverallResults successes="945" failures="123" expectedFailures="21"/> + <OverallResults successes="944" failures="123" expectedFailures="21"/> </Group> - <OverallResults successes="945" failures="122" expectedFailures="21"/> + <OverallResults successes="944" failures="122" expectedFailures="21"/> </Catch> diff --git a/projects/SelfTest/UsageTests/Tricky.tests.cpp b/projects/SelfTest/UsageTests/Tricky.tests.cpp index 180ad00e..b0363d42 100644 --- a/projects/SelfTest/UsageTests/Tricky.tests.cpp +++ b/projects/SelfTest/UsageTests/Tricky.tests.cpp @@ -20,26 +20,6 @@ #include <stdio.h> #include <sstream> -namespace Catch { - std::string toString( const std::pair<int, int>& value ) { - std::ostringstream oss; - oss << "std::pair( " << value.first << ", " << value.second << " )"; - return oss.str(); - } -} - -/////////////////////////////////////////////////////////////////////////////// -TEST_CASE -( - "Parsing a std::pair", - "[Tricky][std::pair]" -) -{ - std::pair<int, int> aNicePair( 1, 2 ); - - REQUIRE( (std::pair<int, int>( 1, 2 )) == aNicePair ); -} - /////////////////////////////////////////////////////////////////////////////// TEST_CASE ( @@ -175,7 +155,7 @@ namespace ObjectWithConversions /////////////////////////////////////////////////////////////////////////////// TEST_CASE ( - "Operators at different namespace levels not hijacked by Koenig lookup", + "Implicit conversions are supported inside assertion macros", "[Tricky][approvals]" ) {