OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |