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

Side by Side Diff: source/test/intltest/plurults.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 unified diff | Download patch
« no previous file with comments | « source/test/intltest/pluralmaptest.cpp ('k') | source/test/intltest/rbbiapts.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 ******************************************************************************* 2 *******************************************************************************
3 * Copyright (C) 2007-2014, International Business Machines Corporation and 3 * Copyright (C) 2007-2014, International Business Machines Corporation and
4 * others. All Rights Reserved. 4 * others. All Rights Reserved.
5 ******************************************************************************** 5 ********************************************************************************
6 6
7 * File PLURRULTS.cpp 7 * File PLURRULTS.cpp
8 * 8 *
9 ******************************************************************************** 9 ********************************************************************************
10 */ 10 */
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 }; 118 };
119 UErrorCode status = U_ZERO_ERROR; 119 UErrorCode status = U_ZERO_ERROR;
120 120
121 // ======= Test constructors 121 // ======= Test constructors
122 logln("Testing PluralRules constructors"); 122 logln("Testing PluralRules constructors");
123 123
124 124
125 logln("\n start default locale test case ..\n"); 125 logln("\n start default locale test case ..\n");
126 126
127 PluralRules defRule(status); 127 PluralRules defRule(status);
128 LocalPointer<PluralRules> test(new PluralRules(status)); 128 LocalPointer<PluralRules> test(new PluralRules(status), status);
129 LocalPointer<PluralRules> newEnPlural(test->forLocale(Locale::getEnglish(), status));
130 if(U_FAILURE(status)) { 129 if(U_FAILURE(status)) {
131 dataerrln("ERROR: Could not create PluralRules (default) - exitting"); 130 dataerrln("ERROR: Could not create PluralRules (default) - exitting");
132 return; 131 return;
133 } 132 }
133 LocalPointer<PluralRules> newEnPlural(test->forLocale(Locale::getEnglish(), status), status);
134 if(U_FAILURE(status)) {
135 dataerrln("ERROR: Could not create PluralRules (English) - exitting");
136 return;
137 }
134 138
135 // ======= Test clone, assignment operator && == operator. 139 // ======= Test clone, assignment operator && == operator.
136 LocalPointer<PluralRules> dupRule(defRule.clone()); 140 LocalPointer<PluralRules> dupRule(defRule.clone());
137 if (dupRule==NULL) { 141 if (dupRule==NULL) {
138 errln("ERROR: clone plural rules test failed!"); 142 errln("ERROR: clone plural rules test failed!");
139 return; 143 return;
140 } else { 144 } else {
141 if ( *dupRule != defRule ) { 145 if ( *dupRule != defRule ) {
142 errln("ERROR: clone plural rules test failed!"); 146 errln("ERROR: clone plural rules test failed!");
143 } 147 }
(...skipping 847 matching lines...) Expand 10 before | Expand all | Expand 10 after
991 if (actualFractionDigits != tc.fractionDigits) { 995 if (actualFractionDigits != tc.fractionDigits) {
992 errln("file %s, line %d: getFractionDigits(%g, %d): expected %ld, go t %ld", 996 errln("file %s, line %d: getFractionDigits(%g, %d): expected %ld, go t %ld",
993 __FILE__, __LINE__, tc.n, numFractionDigits, tc.fractionDigits , actualFractionDigits); 997 __FILE__, __LINE__, tc.n, numFractionDigits, tc.fractionDigits , actualFractionDigits);
994 } 998 }
995 } 999 }
996 } 1000 }
997 1001
998 1002
999 1003
1000 #endif /* #if !UCONFIG_NO_FORMATTING */ 1004 #endif /* #if !UCONFIG_NO_FORMATTING */
OLDNEW
« no previous file with comments | « source/test/intltest/pluralmaptest.cpp ('k') | source/test/intltest/rbbiapts.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698