diff options
| author | Martin Hořeňovský | 2020-12-29 12:37:27 +0100 |
|---|---|---|
| committer | GitHub | 2020-12-29 12:37:27 +0100 |
| commit | f5b413aa58c280cf425ebb6ce18424227c78202a (patch) | |
| tree | a1f229704a2a4db022b389b4ba35b2af78102079 /tests/SelfTest/UsageTests/Misc.tests.cpp | |
| parent | 0acb371b9200140ed958d60b86cbb95663ee93bd (diff) | |
| parent | 4e8832fc882f231c5850836bfc87297ff27f7827 (diff) | |
| download | catch3-f5b413aa58c280cf425ebb6ce18424227c78202a.tar.gz | |
Merge pull request #2138 from catchorg/devel-config-splitting
Split some configuration options out of catch_compiler_capabilities
Diffstat (limited to 'tests/SelfTest/UsageTests/Misc.tests.cpp')
| -rw-r--r-- | tests/SelfTest/UsageTests/Misc.tests.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/SelfTest/UsageTests/Misc.tests.cpp b/tests/SelfTest/UsageTests/Misc.tests.cpp index aa8829d9..277723a8 100644 --- a/tests/SelfTest/UsageTests/Misc.tests.cpp +++ b/tests/SelfTest/UsageTests/Misc.tests.cpp @@ -5,6 +5,7 @@ #include <catch2/catch_test_macros.hpp> #include <catch2/catch_template_test_macros.hpp> +#include <catch2/internal/catch_config_wchar.hpp> #ifdef __clang__ # pragma clang diagnostic ignored "-Wc++98-compat" @@ -423,7 +424,7 @@ TEST_CASE( "Tabs and newlines show in output", "[.][whitespace][failing]" ) { } -#ifdef CATCH_CONFIG_WCHAR +#if defined(CATCH_CONFIG_WCHAR) TEST_CASE( "toString on const wchar_t const pointer returns the string contents", "[toString]" ) { const wchar_t * const s = L"wide load"; std::string result = ::Catch::Detail::stringify( s ); @@ -447,7 +448,7 @@ TEST_CASE( "toString on wchar_t returns the string contents", "[toString]" ) { std::string result = ::Catch::Detail::stringify( s ); CHECK( result == "\"wide load\"" ); } -#endif +#endif // CATCH_CONFIG_WCHAR TEST_CASE( "long long" ) { long long l = std::numeric_limits<long long>::max(); |