diff --git a/tests/SelfTest/Baselines/compact.sw.approved.txt b/tests/SelfTest/Baselines/compact.sw.approved.txt index 0b2436ce..6bad3c92 100644 --- a/tests/SelfTest/Baselines/compact.sw.approved.txt +++ b/tests/SelfTest/Baselines/compact.sw.approved.txt @@ -1692,14 +1692,14 @@ ToStringWhich.tests.cpp:: passed: ::Catch::Detail::stringify(string == "stringmaker(streamable_range)" ToStringWhich.tests.cpp:: passed: ::Catch::Detail::stringify(just_range{}) == "{ 1, 2, 3, 4 }" for: "{ 1, 2, 3, 4 }" == "{ 1, 2, 3, 4 }" -ToStringWhich.tests.cpp:: passed: ::Catch::Detail::stringify(disabled_range{}) == "{ !!! }" for: "{ !!! }" == "{ !!! }" +ToStringWhich.tests.cpp:: passed: ::Catch::Detail::stringify(disabled_range{}) == "{?}" for: "{?}" == "{?}" ToStringWhich.tests.cpp:: passed: ::Catch::Detail::stringify( item ) == "StringMaker" for: "StringMaker" == "StringMaker" ToStringWhich.tests.cpp:: passed: ::Catch::Detail::stringify( item ) == "StringMaker" for: "StringMaker" == "StringMaker" -ToStringWhich.tests.cpp:: passed: ::Catch::Detail::stringify(item) == "{ !!! }" for: "{ !!! }" == "{ !!! }" +ToStringWhich.tests.cpp:: passed: ::Catch::Detail::stringify(item) == "{?}" for: "{?}" == "{?}" ToStringWhich.tests.cpp:: passed: ::Catch::Detail::stringify( item ) == "operator<<( has_operator )" for: "operator<<( has_operator )" == "operator<<( has_operator )" diff --git a/tests/SelfTest/Baselines/console.sw.approved.txt b/tests/SelfTest/Baselines/console.sw.approved.txt index 42f94b55..6665214a 100644 --- a/tests/SelfTest/Baselines/console.sw.approved.txt +++ b/tests/SelfTest/Baselines/console.sw.approved.txt @@ -12545,9 +12545,9 @@ with expansion: "{ 1, 2, 3, 4 }" == "{ 1, 2, 3, 4 }" ToStringWhich.tests.cpp:: PASSED: - REQUIRE( ::Catch::Detail::stringify(disabled_range{}) == "{ !!! }" ) + REQUIRE( ::Catch::Detail::stringify(disabled_range{}) == "{?}" ) with expansion: - "{ !!! }" == "{ !!! }" + "{?}" == "{?}" ------------------------------------------------------------------------------- stringify( has_maker ) @@ -12582,9 +12582,9 @@ ToStringWhich.tests.cpp: ............................................................................... ToStringWhich.tests.cpp:: PASSED: - REQUIRE( ::Catch::Detail::stringify(item) == "{ !!! }" ) + REQUIRE( ::Catch::Detail::stringify(item) == "{?}" ) with expansion: - "{ !!! }" == "{ !!! }" + "{?}" == "{?}" ------------------------------------------------------------------------------- stringify( has_operator ) diff --git a/tests/SelfTest/Baselines/xml.sw.approved.txt b/tests/SelfTest/Baselines/xml.sw.approved.txt index 934a593b..5b07c107 100644 --- a/tests/SelfTest/Baselines/xml.sw.approved.txt +++ b/tests/SelfTest/Baselines/xml.sw.approved.txt @@ -15098,10 +15098,10 @@ loose text artifact - ::Catch::Detail::stringify(disabled_range{}) == "{ !!! }" + ::Catch::Detail::stringify(disabled_range{}) == "{?}" - "{ !!! }" == "{ !!! }" + "{?}" == "{?}" @@ -15135,10 +15135,10 @@ loose text artifact - ::Catch::Detail::stringify(item) == "{ !!! }" + ::Catch::Detail::stringify(item) == "{?}" - "{ !!! }" == "{ !!! }" + "{?}" == "{?}" diff --git a/tests/SelfTest/UsageTests/ToStringWhich.tests.cpp b/tests/SelfTest/UsageTests/ToStringWhich.tests.cpp index 4c10207e..7af8cc5b 100644 --- a/tests/SelfTest/UsageTests/ToStringWhich.tests.cpp +++ b/tests/SelfTest/UsageTests/ToStringWhich.tests.cpp @@ -3,16 +3,6 @@ * for various types */ -// Replace fallback stringifier for this TU -// We should avoid ODR violations because these specific types aren't -// present in different TUs -#include -template -std::string fallbackStringifier(T const&) { - return "{ !!! }"; -} - -#define CATCH_CONFIG_FALLBACK_STRINGIFIER fallbackStringifier #include @@ -85,7 +75,7 @@ TEST_CASE( "stringify( has_maker_and_operator )", "[toString]" ) { TEST_CASE("stringify( has_neither )", "[toString]") { has_neither item; - REQUIRE( ::Catch::Detail::stringify(item) == "{ !!! }" ); + REQUIRE( ::Catch::Detail::stringify(item) == "{?}" ); } // Call the templated operator @@ -189,5 +179,5 @@ TEST_CASE("stringify ranges", "[toString]") { REQUIRE(::Catch::Detail::stringify(streamable_range{}) == "op<<(streamable_range)"); REQUIRE(::Catch::Detail::stringify(stringmaker_range{}) == "stringmaker(streamable_range)"); REQUIRE(::Catch::Detail::stringify(just_range{}) == "{ 1, 2, 3, 4 }"); - REQUIRE(::Catch::Detail::stringify(disabled_range{}) == "{ !!! }"); + REQUIRE(::Catch::Detail::stringify(disabled_range{}) == "{?}"); }