diff options
| author | Martin Hořeňovský | 2020-01-21 15:14:24 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2020-01-21 15:14:24 +0100 |
| commit | d63681f707e9ec21b25ed4c73c811a1c299e38ce (patch) | |
| tree | 114a9fd8b04ea978dc05fbfb14cdef2b312151d4 /tests/SelfTest/UsageTests | |
| parent | 2b696c43880cdfa25dc6d13799799774eed0bb5a (diff) | |
| download | catch3-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')
| -rw-r--r-- | tests/SelfTest/UsageTests/ToStringWhich.tests.cpp | 14 |
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{}) == "{?}"); } |