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

Side by Side Diff: source/test/cintltst/cdateintervalformattest.c

Issue 845603002: Update ICU to 54.1 step 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/deps/icu.git@master
Patch Set: remove unusued directories Created 5 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/cintltst/ccapitst.c ('k') | source/test/cintltst/cdattst.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 * Copyright (c) 2011-2013, International Business Machines Corporation 2 * Copyright (c) 2011-2014, International Business Machines Corporation
3 * and others. All Rights Reserved. 3 * and others. All Rights Reserved.
4 ********************************************************************/ 4 ********************************************************************/
5 /* C API TEST FOR DATE INTERVAL FORMAT */ 5 /* C API TEST FOR DATE INTERVAL FORMAT */
6 6
7 #include "unicode/utypes.h" 7 #include "unicode/utypes.h"
8 8
9 #if !UCONFIG_NO_FORMATTING 9 #if !UCONFIG_NO_FORMATTING
10 10
11 #include "unicode/udateintervalformat.h" 11 #include "unicode/udateintervalformat.h"
12 #include "unicode/udat.h" 12 #include "unicode/udat.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 } DateIntervalFormatTestItem; 46 } DateIntervalFormatTestItem;
47 47
48 /* Just a small set of tests for now, the real functionality is tested in the C+ + tests */ 48 /* Just a small set of tests for now, the real functionality is tested in the C+ + tests */
49 static const DateIntervalFormatTestItem testItems[] = { 49 static const DateIntervalFormatTestItem testItems[] = {
50 { "en", "MMMdHHmm", tzUSPacific, Date201103021030, Date201103021030 + 7.0*_H OUR, "Mar 2, 10:30 \\u2013 17:30" }, 50 { "en", "MMMdHHmm", tzUSPacific, Date201103021030, Date201103021030 + 7.0*_H OUR, "Mar 2, 10:30 \\u2013 17:30" },
51 { "en", "MMMdHHmm", tzAsiaTokyo, Date201103021030, Date201103021030 + 7.0*_H OUR, "Mar 3, 03:30 \\u2013 10:30" }, 51 { "en", "MMMdHHmm", tzAsiaTokyo, Date201103021030, Date201103021030 + 7.0*_H OUR, "Mar 3, 03:30 \\u2013 10:30" },
52 { "en", "yMMMEd", tzUSPacific, Date201009270800, Date201009270800 + 12.0*_ HOUR, "Mon, Sep 27, 2010" }, 52 { "en", "yMMMEd", tzUSPacific, Date201009270800, Date201009270800 + 12.0*_ HOUR, "Mon, Sep 27, 2010" },
53 { "en", "yMMMEd", tzUSPacific, Date201009270800, Date201009270800 + 31.0*_ DAY, "Mon, Sep 27 \\u2013 Thu, Oct 28, 2010" }, 53 { "en", "yMMMEd", tzUSPacific, Date201009270800, Date201009270800 + 31.0*_ DAY, "Mon, Sep 27 \\u2013 Thu, Oct 28, 2010" },
54 { "en", "yMMMEd", tzUSPacific, Date201009270800, Date201009270800 + 410.0* _DAY, "Mon, Sep 27, 2010 \\u2013 Fri, Nov 11, 2011" }, 54 { "en", "yMMMEd", tzUSPacific, Date201009270800, Date201009270800 + 410.0* _DAY, "Mon, Sep 27, 2010 \\u2013 Fri, Nov 11, 2011" },
55 { "de", "Hm", tzUSPacific, Date201009270800, Date201009270800 + 12.0*_ HOUR, "08:00-20:00" }, 55 { "de", "Hm", tzUSPacific, Date201009270800, Date201009270800 + 12.0*_ HOUR, "08:00-20:00" },
56 { "de", "Hm", tzUSPacific, Date201009270800, Date201009270800 + 31.0*_ DAY, "27.9.2010 08:00 - 28.10.2010 08:00" }, 56 { "de", "Hm", tzUSPacific, Date201009270800, Date201009270800 + 31.0*_ DAY, "27.9.2010, 08:00 - 28.10.2010, 08:00" },
57 { "ja", "MMMd", tzUSPacific, Date201009270800, Date201009270800 + 1.0*_D AY, "9\\u670827\\u65E5\\uFF5E28\\u65E5" }, 57 { "ja", "MMMd", tzUSPacific, Date201009270800, Date201009270800 + 1.0*_D AY, "9\\u670827\\u65E5\\uFF5E28\\u65E5" },
58 { NULL, NULL, NULL, 0, 0, NULL } 58 { NULL, NULL, NULL, 0, 0, NULL }
59 }; 59 };
60 60
61 enum { 61 enum {
62 kSkelBufLen = 32, 62 kSkelBufLen = 32,
63 kTZIDBufLen = 96, 63 kTZIDBufLen = 96,
64 kFormatBufLen = 128 64 kFormatBufLen = 128
65 }; 65 };
66 66
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 udtitvfmt_close(udtitvfmt); 108 udtitvfmt_close(udtitvfmt);
109 } else { 109 } else {
110 log_data_err("FAIL: udtitvfmt_open for locale %s, skeleton %s, tzid %s - %s\n", 110 log_data_err("FAIL: udtitvfmt_open for locale %s, skeleton %s, tzid %s - %s\n",
111 testItemPtr->locale, testItemPtr->skeleton, tzidForLog, myEr rorName(status) ); 111 testItemPtr->locale, testItemPtr->skeleton, tzidForLog, myEr rorName(status) );
112 } 112 }
113 } 113 }
114 ctest_resetTimeZone(); 114 ctest_resetTimeZone();
115 } 115 }
116 116
117 #endif /* #if !UCONFIG_NO_FORMATTING */ 117 #endif /* #if !UCONFIG_NO_FORMATTING */
OLDNEW
« no previous file with comments | « source/test/cintltst/ccapitst.c ('k') | source/test/cintltst/cdattst.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698