mirror of
https://github.com/llvm-mirror/libcxx.git
synced 2025-10-24 12:02:36 +08:00
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. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@232383 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -21,6 +21,8 @@
|
||||
#include <cassert>
|
||||
#include "test_iterators.h"
|
||||
|
||||
#include "platform_support.h" // locale name macros
|
||||
|
||||
int main()
|
||||
{
|
||||
{
|
||||
@@ -29,7 +31,7 @@ int main()
|
||||
const char B[] = "B";
|
||||
typedef forward_iterator<const char*> F;
|
||||
assert(t.transform(F(a), F(a+1)) > t.transform(F(B), F(B+1)));
|
||||
t.imbue(std::locale("cs_CZ.ISO8859-2"));
|
||||
t.imbue(std::locale(LOCALE_cs_CZ_ISO8859_2));
|
||||
assert(t.transform(F(a), F(a+1)) < t.transform(F(B), F(B+1)));
|
||||
}
|
||||
{
|
||||
@@ -38,7 +40,7 @@ int main()
|
||||
const wchar_t B[] = L"B";
|
||||
typedef forward_iterator<const wchar_t*> F;
|
||||
assert(t.transform(F(a), F(a+1)) > t.transform(F(B), F(B+1)));
|
||||
t.imbue(std::locale("cs_CZ.ISO8859-2"));
|
||||
t.imbue(std::locale(LOCALE_cs_CZ_ISO8859_2));
|
||||
assert(t.transform(F(a), F(a+1)) < t.transform(F(B), F(B+1)));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user