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

summaryrefslogtreecommitdiffhomepage
path: root/tests/SelfTest/UsageTests/Misc.tests.cpp
diff options
context:
space:
mode:
authorMartin Hořeňovský2020-12-28 20:29:05 +0100
committerMartin Hořeňovský2020-12-28 20:51:49 +0100
commit1d269211bd603d4a50c44b741617db754b790e23 (patch)
tree6cad64fdc1bc4d944ea9aa09d5b55db1b07ea692 /tests/SelfTest/UsageTests/Misc.tests.cpp
parent0acb371b9200140ed958d60b86cbb95663ee93bd (diff)
downloadcatch3-1d269211bd603d4a50c44b741617db754b790e23.tar.gz
Split CATCH_CONFIG_WCHAR into its own header
Part of #2041
Diffstat (limited to 'tests/SelfTest/UsageTests/Misc.tests.cpp')
-rw-r--r--tests/SelfTest/UsageTests/Misc.tests.cpp5
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();