Don't hardcode the Czech locale name.
We already have a definition for the Czech locale name in
platform_support.h. Use this one instead.
While there, respect the common format of the tests. For most other
tests it's the case that test_iterators.h is placed right underneath the
other #includes (without an empty line). platform_support.h is included
after an empty line.
llvm-svn: 232383
diff --git a/libcxx/test/std/re/re.traits/lookup_collatename.pass.cpp b/libcxx/test/std/re/re.traits/lookup_collatename.pass.cpp
index d495f8a..a7cd5f0 100644
--- a/libcxx/test/std/re/re.traits/lookup_collatename.pass.cpp
+++ b/libcxx/test/std/re/re.traits/lookup_collatename.pass.cpp
@@ -25,6 +25,8 @@
#include <cassert>
#include "test_iterators.h"
+#include "platform_support.h" // locale name macros
+
template <class char_type>
void
test(const char_type* A, const std::basic_string<char_type>& expected)
@@ -108,7 +110,7 @@
test("tild", std::string(""));
test("ch", std::string(""));
- std::locale::global(std::locale("cs_CZ.ISO8859-2"));
+ std::locale::global(std::locale(LOCALE_cs_CZ_ISO8859_2));
test("ch", std::string("ch"));
std::locale::global(std::locale("C"));
@@ -184,7 +186,7 @@
test(L"tild", std::wstring(L""));
test(L"ch", std::wstring(L""));
- std::locale::global(std::locale("cs_CZ.ISO8859-2"));
+ std::locale::global(std::locale(LOCALE_cs_CZ_ISO8859_2));
test(L"ch", std::wstring(L"ch"));
std::locale::global(std::locale("C"));
}