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

Side by Side Diff: source/test/intltest/reldatefmttest.cpp

Issue 1621943002: ICU 56 step 4: Apply post-56 fixes for measure/date format (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@56goog
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/quantityformattertest.cpp ('k') | source/test/intltest/tufmtts.h » ('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) 2013-2015, International Business Machines Corporation and * 3 * Copyright (C) 2013-2015, International Business Machines Corporation and *
4 * others. All Rights Reserved. * 4 * others. All Rights Reserved. *
5 ******************************************************************************* 5 *******************************************************************************
6 * 6 *
7 * File RELDATEFMTTEST.CPP 7 * File RELDATEFMTTEST.CPP
8 * 8 *
9 ******************************************************************************* 9 *******************************************************************************
10 */ 10 */
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 {2.0, UDAT_DIRECTION_NEXT, UDAT_RELATIVE_SECONDS, "in 2.0 seconds"} 224 {2.0, UDAT_DIRECTION_NEXT, UDAT_RELATIVE_SECONDS, "in 2.0 seconds"}
225 }; 225 };
226 226
227 static WithQuantityExpected kSerbian[] = { 227 static WithQuantityExpected kSerbian[] = {
228 {0.0, UDAT_DIRECTION_NEXT, UDAT_RELATIVE_MONTHS, "\\u0437\\u0430 0 \\u04 3c\\u0435\\u0441\\u0435\\u0446\\u0438"}, 228 {0.0, UDAT_DIRECTION_NEXT, UDAT_RELATIVE_MONTHS, "\\u0437\\u0430 0 \\u04 3c\\u0435\\u0441\\u0435\\u0446\\u0438"},
229 {1.2, UDAT_DIRECTION_NEXT, UDAT_RELATIVE_MONTHS, "\\u0437\\u0430 1,2 \\u 043c\\u0435\\u0441\\u0435\\u0446\\u0430"}, 229 {1.2, UDAT_DIRECTION_NEXT, UDAT_RELATIVE_MONTHS, "\\u0437\\u0430 1,2 \\u 043c\\u0435\\u0441\\u0435\\u0446\\u0430"},
230 {21.0, UDAT_DIRECTION_NEXT, UDAT_RELATIVE_MONTHS, "\\u0437\\u0430 21 \\u 043c\\u0435\\u0441\\u0435\\u0446"} 230 {21.0, UDAT_DIRECTION_NEXT, UDAT_RELATIVE_MONTHS, "\\u0437\\u0430 21 \\u 043c\\u0435\\u0441\\u0435\\u0446"}
231 }; 231 };
232 232
233 static WithQuantityExpected kSerbianNarrow[] = { 233 static WithQuantityExpected kSerbianNarrow[] = {
234 {0.0, UDAT_DIRECTION_NEXT, UDAT_RELATIVE_MONTHS, "\\u0437\\u0430 0 \\u04 3c\\u0435\\u0441."}, 234 {0.0, UDAT_DIRECTION_NEXT, UDAT_RELATIVE_MONTHS, "\\u0437\\u0430 0 \\u04 3c."},
235 {1.2, UDAT_DIRECTION_NEXT, UDAT_RELATIVE_MONTHS, "\\u0437\\u0430 1,2 \\u 043c\\u0435\\u0441."}, 235 {1.2, UDAT_DIRECTION_NEXT, UDAT_RELATIVE_MONTHS, "\\u0437\\u0430 1,2 \\u 043c."},
236 {21.0, UDAT_DIRECTION_NEXT, UDAT_RELATIVE_MONTHS, "\\u0437\\u0430 21 \\u 043c\\u0435\\u0441."} 236 {21.0, UDAT_DIRECTION_NEXT, UDAT_RELATIVE_MONTHS, "\\u0437\\u0430 21 \\u 043c."}
237 }; 237 };
238 238
239 static WithoutQuantityExpected kEnglishNoQuantity[] = { 239 static WithoutQuantityExpected kEnglishNoQuantity[] = {
240 {UDAT_DIRECTION_NEXT_2, UDAT_ABSOLUTE_DAY, ""}, 240 {UDAT_DIRECTION_NEXT_2, UDAT_ABSOLUTE_DAY, ""},
241 241
242 {UDAT_DIRECTION_NEXT, UDAT_ABSOLUTE_DAY, "tomorrow"}, 242 {UDAT_DIRECTION_NEXT, UDAT_ABSOLUTE_DAY, "tomorrow"},
243 {UDAT_DIRECTION_NEXT, UDAT_ABSOLUTE_WEEK, "next week"}, 243 {UDAT_DIRECTION_NEXT, UDAT_ABSOLUTE_WEEK, "next week"},
244 {UDAT_DIRECTION_NEXT, UDAT_ABSOLUTE_MONTH, "next month"}, 244 {UDAT_DIRECTION_NEXT, UDAT_ABSOLUTE_MONTH, "next month"},
245 {UDAT_DIRECTION_NEXT, UDAT_ABSOLUTE_YEAR, "next year"}, 245 {UDAT_DIRECTION_NEXT, UDAT_ABSOLUTE_YEAR, "next year"},
246 {UDAT_DIRECTION_NEXT, UDAT_ABSOLUTE_MONDAY, "next Monday"}, 246 {UDAT_DIRECTION_NEXT, UDAT_ABSOLUTE_MONDAY, "next Monday"},
(...skipping 753 matching lines...) Expand 10 before | Expand all | Expand 10 after
1000 return kUndefined; 1000 return kUndefined;
1001 } 1001 }
1002 return kUndefined; 1002 return kUndefined;
1003 } 1003 }
1004 1004
1005 extern IntlTest *createRelativeDateTimeFormatterTest() { 1005 extern IntlTest *createRelativeDateTimeFormatterTest() {
1006 return new RelativeDateTimeFormatterTest(); 1006 return new RelativeDateTimeFormatterTest();
1007 } 1007 }
1008 1008
1009 #endif 1009 #endif
OLDNEW
« no previous file with comments | « source/test/intltest/quantityformattertest.cpp ('k') | source/test/intltest/tufmtts.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698