diff options
| author | Phil Nash | 2015-11-06 06:54:15 +0000 |
|---|---|---|
| committer | Phil Nash | 2015-11-06 18:07:28 +0000 |
| commit | 71fd2c2fdf3297b785fee4f3dead7b7412a2eac2 (patch) | |
| tree | 3c3538d002a2521258a1beb73957827d72a83701 /projects | |
| parent | 08844e7e57fe9c604579962ab3848a4b9a820b2d (diff) | |
| download | catch3-71fd2c2fdf3297b785fee4f3dead7b7412a2eac2.tar.gz | |
Fixed test names mentioning the new Matcher combinator operators
Diffstat (limited to 'projects')
| -rw-r--r-- | projects/SelfTest/Baselines/console.std.approved.txt | 2 | ||||
| -rw-r--r-- | projects/SelfTest/Baselines/console.sw.approved.txt | 8 | ||||
| -rw-r--r-- | projects/SelfTest/Baselines/junit.sw.approved.txt | 8 | ||||
| -rw-r--r-- | projects/SelfTest/Baselines/xml.sw.approved.txt | 8 | ||||
| -rw-r--r-- | projects/SelfTest/MiscTests.cpp | 8 |
5 files changed, 17 insertions, 17 deletions
diff --git a/projects/SelfTest/Baselines/console.std.approved.txt b/projects/SelfTest/Baselines/console.std.approved.txt index 73cef33c..2b312e67 100644 --- a/projects/SelfTest/Baselines/console.std.approved.txt +++ b/projects/SelfTest/Baselines/console.std.approved.txt @@ -708,7 +708,7 @@ with expansion: "this string contains 'abc' as a substring" equals: "something else" ------------------------------------------------------------------------------- -Matchers can be composed with both + and | - failing +Matchers can be composed with both && and || - failing ------------------------------------------------------------------------------- MiscTests.cpp:<line number> ............................................................................... diff --git a/projects/SelfTest/Baselines/console.sw.approved.txt b/projects/SelfTest/Baselines/console.sw.approved.txt index 082fa32d..edfedded 100644 --- a/projects/SelfTest/Baselines/console.sw.approved.txt +++ b/projects/SelfTest/Baselines/console.sw.approved.txt @@ -3419,7 +3419,7 @@ with expansion: 'abc' as a substring" ------------------------------------------------------------------------------- -Matchers can be (AllOf) composed with the + operator +Matchers can be (AllOf) composed with the && operator ------------------------------------------------------------------------------- MiscTests.cpp:<line number> ............................................................................... @@ -3432,7 +3432,7 @@ with expansion: contains: "abc" and contains: "substring" and contains: "contains" ) ------------------------------------------------------------------------------- -Matchers can be (AnyOf) composed with the | operator +Matchers can be (AnyOf) composed with the || operator ------------------------------------------------------------------------------- MiscTests.cpp:<line number> ............................................................................... @@ -3452,7 +3452,7 @@ with expansion: "string" or contains: "different" or contains: "random" ) ------------------------------------------------------------------------------- -Matchers can be composed with both + and | +Matchers can be composed with both && and || ------------------------------------------------------------------------------- MiscTests.cpp:<line number> ............................................................................... @@ -3465,7 +3465,7 @@ with expansion: contains: "different" ) and contains: "substring" ) ------------------------------------------------------------------------------- -Matchers can be composed with both + and | - failing +Matchers can be composed with both && and || - failing ------------------------------------------------------------------------------- MiscTests.cpp:<line number> ............................................................................... diff --git a/projects/SelfTest/Baselines/junit.sw.approved.txt b/projects/SelfTest/Baselines/junit.sw.approved.txt index 039aeaae..0243909e 100644 --- a/projects/SelfTest/Baselines/junit.sw.approved.txt +++ b/projects/SelfTest/Baselines/junit.sw.approved.txt @@ -438,10 +438,10 @@ MiscTests.cpp:<line number> <testcase classname="global" name="AllOf matcher" time="{duration}"/> <testcase classname="global" name="AnyOf matcher" time="{duration}"/> <testcase classname="global" name="Equals" time="{duration}"/> - <testcase classname="global" name="Matchers can be (AllOf) composed with the + operator" time="{duration}"/> - <testcase classname="global" name="Matchers can be (AnyOf) composed with the | operator" time="{duration}"/> - <testcase classname="global" name="Matchers can be composed with both + and |" time="{duration}"/> - <testcase classname="global" name="Matchers can be composed with both + and | - failing" time="{duration}"> + <testcase classname="global" name="Matchers can be (AllOf) composed with the && operator" time="{duration}"/> + <testcase classname="global" name="Matchers can be (AnyOf) composed with the || operator" time="{duration}"/> + <testcase classname="global" name="Matchers can be composed with both && and ||" time="{duration}"/> + <testcase classname="global" name="Matchers can be composed with both && and || - failing" time="{duration}"> <failure message=""this string contains 'abc' as a substring" ( ( contains: "string" or contains: "different" ) and contains: "random" )" type="CHECK_THAT"> MiscTests.cpp:<line number> </failure> diff --git a/projects/SelfTest/Baselines/xml.sw.approved.txt b/projects/SelfTest/Baselines/xml.sw.approved.txt index ed4ce494..f185891a 100644 --- a/projects/SelfTest/Baselines/xml.sw.approved.txt +++ b/projects/SelfTest/Baselines/xml.sw.approved.txt @@ -3590,7 +3590,7 @@ </Expression> <OverallResult success="true"/> </TestCase> - <TestCase name="Matchers can be (AllOf) composed with the + operator"> + <TestCase name="Matchers can be (AllOf) composed with the && operator"> <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" > <Original> testStringForMatching() Contains( "string" ) && Contains( "abc" ) && Contains( "substring" ) && Contains( "contains" ) @@ -3601,7 +3601,7 @@ </Expression> <OverallResult success="true"/> </TestCase> - <TestCase name="Matchers can be (AnyOf) composed with the | operator"> + <TestCase name="Matchers can be (AnyOf) composed with the || operator"> <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" > <Original> testStringForMatching() Contains( "string" ) || Contains( "different" ) || Contains( "random" ) @@ -3620,7 +3620,7 @@ </Expression> <OverallResult success="true"/> </TestCase> - <TestCase name="Matchers can be composed with both + and |"> + <TestCase name="Matchers can be composed with both && and ||"> <Expression success="true" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" > <Original> testStringForMatching() ( Contains( "string" ) || Contains( "different" ) ) && Contains( "substring" ) @@ -3631,7 +3631,7 @@ </Expression> <OverallResult success="true"/> </TestCase> - <TestCase name="Matchers can be composed with both + and | - failing"> + <TestCase name="Matchers can be composed with both && and || - failing"> <Expression success="false" type="CHECK_THAT" filename="projects/SelfTest/MiscTests.cpp" > <Original> testStringForMatching() ( Contains( "string" ) || Contains( "different" ) ) && Contains( "random" ) diff --git a/projects/SelfTest/MiscTests.cpp b/projects/SelfTest/MiscTests.cpp index c2a7784c..cf7f48cf 100644 --- a/projects/SelfTest/MiscTests.cpp +++ b/projects/SelfTest/MiscTests.cpp @@ -262,7 +262,7 @@ TEST_CASE("Equals", "[matchers]") CHECK_THAT( testStringForMatching(), Equals( "this string contains 'abc' as a substring" ) ); } -TEST_CASE("Matchers can be (AllOf) composed with the + operator", "[matchers][operators][operator+]") +TEST_CASE("Matchers can be (AllOf) composed with the && operator", "[matchers][operators][operator&&]") { CHECK_THAT( testStringForMatching(), Contains( "string" ) && @@ -271,18 +271,18 @@ TEST_CASE("Matchers can be (AllOf) composed with the + operator", "[matchers][op Contains( "contains" ) ); } -TEST_CASE("Matchers can be (AnyOf) composed with the | operator", "[matchers][operators][operator|]") +TEST_CASE("Matchers can be (AnyOf) composed with the || operator", "[matchers][operators][operator||]") { CHECK_THAT( testStringForMatching(), Contains( "string" ) || Contains( "different" ) || Contains( "random" ) ); CHECK_THAT( testStringForMatching2(), Contains( "string" ) || Contains( "different" ) || Contains( "random" ) ); } -TEST_CASE("Matchers can be composed with both + and |", "[matchers][operators][operator|][operator+]") +TEST_CASE("Matchers can be composed with both && and ||", "[matchers][operators][operator||][operator&&]") { CHECK_THAT( testStringForMatching(), ( Contains( "string" ) || Contains( "different" ) ) && Contains( "substring" ) ); } -TEST_CASE("Matchers can be composed with both + and | - failing", "[matchers][operators][operator|][operator+][.failing]") +TEST_CASE("Matchers can be composed with both && and || - failing", "[matchers][operators][operator||][operator&&][.failing]") { CHECK_THAT( testStringForMatching(), ( Contains( "string" ) || Contains( "different" ) ) && Contains( "random" ) ); } |