diff options
| author | Martin Hořeňovský | 2020-12-28 20:29:05 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2020-12-28 20:51:49 +0100 |
| commit | 1d269211bd603d4a50c44b741617db754b790e23 (patch) | |
| tree | 6cad64fdc1bc4d944ea9aa09d5b55db1b07ea692 /tests | |
| parent | 0acb371b9200140ed958d60b86cbb95663ee93bd (diff) | |
| download | catch3-1d269211bd603d4a50c44b741617db754b790e23.tar.gz | |
Split CATCH_CONFIG_WCHAR into its own header
Part of #2041
Diffstat (limited to 'tests')
| -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(); |