OLD | NEW |
1 /******************************************************************** | 1 /******************************************************************** |
2 * COPYRIGHT: | 2 * COPYRIGHT: |
3 * Copyright (c) 1997-2010, International Business Machines Corporation and | 3 * Copyright (c) 1997-2014, International Business Machines Corporation and |
4 * others. All Rights Reserved. | 4 * others. All Rights Reserved. |
5 ********************************************************************/ | 5 ********************************************************************/ |
6 | 6 |
7 #include "intltest.h" | 7 #include "intltest.h" |
8 #include "unicode/locid.h" | 8 #include "unicode/locid.h" |
9 | 9 |
10 /** | 10 /** |
11 * Tests for the Locale class | 11 * Tests for the Locale class |
12 **/ | 12 **/ |
13 class LocaleTest: public IntlTest { | 13 class LocaleTest: public IntlTest { |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 | 94 |
95 void TestCanonicalization(void); | 95 void TestCanonicalization(void); |
96 | 96 |
97 #if !UCONFIG_NO_FORMATTING | 97 #if !UCONFIG_NO_FORMATTING |
98 static UDate date(int32_t y, int32_t m, int32_t d, int32_t hr = 0, int32_t m
in = 0, int32_t sec = 0); | 98 static UDate date(int32_t y, int32_t m, int32_t d, int32_t hr = 0, int32_t m
in = 0, int32_t sec = 0); |
99 #endif | 99 #endif |
100 | 100 |
101 void TestCurrencyByDate(void); | 101 void TestCurrencyByDate(void); |
102 | 102 |
103 void TestGetVariantWithKeywords(void); | 103 void TestGetVariantWithKeywords(void); |
| 104 void TestIsRightToLeft(); |
104 | 105 |
105 private: | 106 private: |
106 void _checklocs(const char* label, | 107 void _checklocs(const char* label, |
107 const char* req, | 108 const char* req, |
108 const Locale& validLoc, | 109 const Locale& validLoc, |
109 const Locale& actualLoc, | 110 const Locale& actualLoc, |
110 const char* expReqValid="gt", | 111 const char* expReqValid="gt", |
111 const char* expValidActual="ge"); | 112 const char* expValidActual="ge"); |
112 | 113 |
113 /** | 114 /** |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 DCTRY_EL, | 163 DCTRY_EL, |
163 DVAR_EL, | 164 DVAR_EL, |
164 DNAME_EL, | 165 DNAME_EL, |
165 DLANG_NO, | 166 DLANG_NO, |
166 DSCRIPT_NO, | 167 DSCRIPT_NO, |
167 DCTRY_NO, | 168 DCTRY_NO, |
168 DVAR_NO, | 169 DVAR_NO, |
169 DNAME_NO | 170 DNAME_NO |
170 }; | 171 }; |
171 }; | 172 }; |
172 | |
173 | |
174 | |
OLD | NEW |