From 73a1623eafe5831820f138932a06cbfcf72cc79b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Sat, 25 Nov 2017 18:38:18 +0100 Subject: [PATCH] Re-enable 2 string tests --- .../Baselines/console.std.approved.txt | 4 +-- .../Baselines/console.sw.approved.txt | 34 +++++++++++++++++-- .../SelfTest/Baselines/junit.sw.approved.txt | 6 ++-- .../SelfTest/Baselines/xml.sw.approved.txt | 32 +++++++++++++++-- .../UsageTests/ToStringWhich.tests.cpp | 8 ++--- 5 files changed, 70 insertions(+), 14 deletions(-) diff --git a/projects/SelfTest/Baselines/console.std.approved.txt b/projects/SelfTest/Baselines/console.std.approved.txt index 13846d4c..66488a4e 100644 --- a/projects/SelfTest/Baselines/console.std.approved.txt +++ b/projects/SelfTest/Baselines/console.std.approved.txt @@ -1052,6 +1052,6 @@ with expansion: "{?}" == "1" =============================================================================== -test cases: 189 | 137 passed | 48 failed | 4 failed as expected -assertions: 952 | 828 passed | 103 failed | 21 failed as expected +test cases: 191 | 139 passed | 48 failed | 4 failed as expected +assertions: 954 | 830 passed | 103 failed | 21 failed as expected diff --git a/projects/SelfTest/Baselines/console.sw.approved.txt b/projects/SelfTest/Baselines/console.sw.approved.txt index 26270ec6..8850a87a 100644 --- a/projects/SelfTest/Baselines/console.sw.approved.txt +++ b/projects/SelfTest/Baselines/console.sw.approved.txt @@ -7517,7 +7517,7 @@ with expansion: ""wide load"" == ""wide load"" ------------------------------------------------------------------------------- -toString( vectors ) ------------------------------------------------------------------------------- ToStringWhich.tests.cpp: ............................................................................... @@ -7530,6 +7530,34 @@ with expansion: == "{ StringMaker }" +------------------------------------------------------------------------------- +toString( vectors ) +------------------------------------------------------------------------------- +ToStringWhich.tests.cpp: +............................................................................... + +ToStringWhich.tests.cpp:: +PASSED: + REQUIRE( ::Catch::Detail::stringify( v ) == "{ StringMaker }" ) +with expansion: + "{ StringMaker }" + == + "{ StringMaker }" + +------------------------------------------------------------------------------- +toString( vectors ) +------------------------------------------------------------------------------- +ToStringWhich.tests.cpp: +............................................................................... + +ToStringWhich.tests.cpp:: +PASSED: + REQUIRE( ::Catch::Detail::stringify( v ) == "{ operator<<( has_operator ) }" ) +with expansion: + "{ operator<<( has_operator ) }" + == + "{ operator<<( has_operator ) }" + ------------------------------------------------------------------------------- toString(enum class w/operator<<) ------------------------------------------------------------------------------- @@ -7975,6 +8003,6 @@ Misc.tests.cpp:: PASSED: =============================================================================== -test cases: 189 | 135 passed | 50 failed | 4 failed as expected -assertions: 951 | 824 passed | 106 failed | 21 failed as expected +test cases: 191 | 137 passed | 50 failed | 4 failed as expected +assertions: 953 | 826 passed | 106 failed | 21 failed as expected diff --git a/projects/SelfTest/Baselines/junit.sw.approved.txt b/projects/SelfTest/Baselines/junit.sw.approved.txt index 610e3f8e..54598096 100644 --- a/projects/SelfTest/Baselines/junit.sw.approved.txt +++ b/projects/SelfTest/Baselines/junit.sw.approved.txt @@ -1,7 +1,7 @@ - + @@ -796,7 +796,9 @@ Tricky.tests.cpp: - + + + diff --git a/projects/SelfTest/Baselines/xml.sw.approved.txt b/projects/SelfTest/Baselines/xml.sw.approved.txt index 925c54d0..00eb9989 100644 --- a/projects/SelfTest/Baselines/xml.sw.approved.txt +++ b/projects/SelfTest/Baselines/xml.sw.approved.txt @@ -8409,7 +8409,7 @@ loose text artifact - + ::Catch::Detail::stringify( v ) == "{ StringMaker<has_maker> }" @@ -8422,6 +8422,32 @@ loose text artifact + + + + ::Catch::Detail::stringify( v ) == "{ StringMaker<has_maker_and_operator> }" + + + "{ StringMaker<has_maker_and_operator> }" +== +"{ StringMaker<has_maker_and_operator> }" + + + + + + + + ::Catch::Detail::stringify( v ) == "{ operator<<( has_operator ) }" + + + "{ operator<<( has_operator ) }" +== +"{ operator<<( has_operator ) }" + + + + @@ -8863,7 +8889,7 @@ loose text artifact - + - + diff --git a/projects/SelfTest/UsageTests/ToStringWhich.tests.cpp b/projects/SelfTest/UsageTests/ToStringWhich.tests.cpp index fc658a7a..2bf467cb 100644 --- a/projects/SelfTest/UsageTests/ToStringWhich.tests.cpp +++ b/projects/SelfTest/UsageTests/ToStringWhich.tests.cpp @@ -55,19 +55,19 @@ TEST_CASE( "stringify( has_maker_and_toString )", "[.][toString]" ) { // Vectors... // Don't run this in approval tests as it is sensitive to two phase lookup differences -TEST_CASE( "toString( vectors )", "[toString]" ) { std::vector v(1); REQUIRE( ::Catch::Detail::stringify( v ) == "{ operator<<( has_operator ) }" ); } -TEST_CASE( "toString( vectors )", "[toString]" ) { std::vector v(1); REQUIRE( ::Catch::Detail::stringify( v ) == "{ StringMaker }" ); } // Don't run this in approval tests as it is sensitive to two phase lookup differences -TEST_CASE( "toString( vectors )", "[toString]" ) { std::vector v(1); - REQUIRE( ::Catch::Detail::stringify( v ) == "{ StringMaker }" ); + REQUIRE( ::Catch::Detail::stringify( v ) == "{ StringMaker }" ); }