Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/tests/SelfTest/UsageTests/ToStringWhich.tests.cpp
diff options
context:
space:
mode:
authorMartin Hořeňovský2020-01-21 15:14:24 +0100
committerMartin Hořeňovský2020-01-21 15:14:24 +0100
commitd63681f707e9ec21b25ed4c73c811a1c299e38ce (patch)
tree114a9fd8b04ea978dc05fbfb14cdef2b312151d4 /tests/SelfTest/UsageTests/ToStringWhich.tests.cpp
parent2b696c43880cdfa25dc6d13799799774eed0bb5a (diff)
downloadcatch3-d63681f707e9ec21b25ed4c73c811a1c299e38ce.tar.gz
Remove testing of CATCH_CONFIG_FALLBACK_STRINGIFIER from SelfTest
This removes a potential ODR violation and the configuration option is tested in its own separate binary anyway.
Diffstat (limited to 'tests/SelfTest/UsageTests/ToStringWhich.tests.cpp')
-rw-r--r--tests/SelfTest/UsageTests/ToStringWhich.tests.cpp14
1 files changed, 2 insertions, 12 deletions
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 <string>
-template <typename T>
-std::string fallbackStringifier(T const&) {
- return "{ !!! }";
-}
-
-#define CATCH_CONFIG_FALLBACK_STRINGIFIER fallbackStringifier
#include <catch2/catch_test_macros.hpp>
@@ -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{}) == "{?}");
}