Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1143)

Unified Diff: source/test/intltest/locnmtst.cpp

Issue 1621843002: ICU 56 update step 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@561
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « source/test/intltest/locnmtst.h ('k') | source/test/intltest/loctest.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/test/intltest/locnmtst.cpp
diff --git a/source/test/intltest/locnmtst.cpp b/source/test/intltest/locnmtst.cpp
index df4c156f7cfdf582f4f8831313d20c39e1950b42..f749b82a94f75f7e23e69a028708627914133fc5 100644
--- a/source/test/intltest/locnmtst.cpp
+++ b/source/test/intltest/locnmtst.cpp
@@ -73,10 +73,11 @@ void LocaleDisplayNamesTest::runIndexedTest(int32_t index, UBool exec, const cha
TESTCASE(5, TestUldnWithKeywordsAndEverything);
TESTCASE(6, TestUldnComponents);
TESTCASE(7, TestRootEtc);
- TESTCASE(8, TestKeywords);
- TESTCASE(9, TestUntranslatedKeywords);
- TESTCASE(10, TestPrivateUse);
- TESTCASE(11, TestUldnDisplayContext);
+ TESTCASE(8, TestCurrencyKeyword);
+ TESTCASE(9, TestUnknownCurrencyKeyword);
+ TESTCASE(10, TestUntranslatedKeywords);
+ TESTCASE(11, TestPrivateUse);
+ TESTCASE(12, TestUldnDisplayContext);
#endif
default:
name = "";
@@ -112,7 +113,17 @@ void LocaleDisplayNamesTest::TestWithKeywordsAndEverything() {
test_assert_equal(target, temp);
}
-void LocaleDisplayNamesTest::TestKeywords() {
+void LocaleDisplayNamesTest::TestCurrencyKeyword() {
+ UnicodeString temp;
+ LocaleDisplayNames *ldn = LocaleDisplayNames::createInstance(Locale::getUS());
+ const char *locname = "ja@currency=JPY";
+ const char *target = "Japanese (Japanese Yen)";
+ ldn->localeDisplayName(locname, temp);
+ delete ldn;
+ test_assert_equal(target, temp);
+}
+
+void LocaleDisplayNamesTest::TestUnknownCurrencyKeyword() {
UnicodeString temp;
LocaleDisplayNames *ldn = LocaleDisplayNames::createInstance(Locale::getUS());
const char *locname = "de@currency=XYZ";
« no previous file with comments | « source/test/intltest/locnmtst.h ('k') | source/test/intltest/loctest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698