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

Side by Side Diff: source/test/cintltst/cfintst.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/cdtrgtst.c ('k') | source/test/cintltst/cg7coll.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) 1997-2009, International Business Machines 2 * Copyright (c) 1997-2009,2014, International Business Machines
3 * Corporation and others. All Rights Reserved. 3 * Corporation and others. All Rights Reserved.
4 ******************************************************************** 4 ********************************************************************
5 * 5 *
6 * File CFINTST.C 6 * File CFINTST.C
7 * 7 *
8 * Modification History: 8 * Modification History:
9 * Name Description 9 * Name Description
10 * Madhu Katragadda Ported for C API 10 * Madhu Katragadda Ported for C API
11 ******************************************************************** 11 ********************************************************************
12 */ 12 */
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 {0x004c/*'L'*/, 0x00E4, 0x0077/*'w'*/, 0x0065/*'e'*/, 0x0000}, 49 {0x004c/*'L'*/, 0x00E4, 0x0077/*'w'*/, 0x0065/*'e'*/, 0x0000},
50 {0x0076/*'v'*/, 0x0061/*'a'*/, 0x0074/*'t'*/, 0x0000} 50 {0x0076/*'v'*/, 0x0061/*'a'*/, 0x0074/*'t'*/, 0x0000}
51 }; 51 };
52 52
53 const static UCollationResult results[] = { 53 const static UCollationResult results[] = {
54 UCOL_GREATER, 54 UCOL_GREATER,
55 UCOL_LESS, 55 UCOL_LESS,
56 UCOL_GREATER, 56 UCOL_GREATER,
57 UCOL_LESS, 57 UCOL_LESS,
58 /* test primary > 4*/ 58 /* test primary > 4*/
59 UCOL_EQUAL 59 UCOL_GREATER /* v < w per cldrbug 6615 */
60 }; 60 };
61 61
62 62
63 63
64 void addFinnishCollTest(TestNode** root) 64 void addFinnishCollTest(TestNode** root)
65 { 65 {
66 66
67 67
68 addTest(root, &TestPrimary, "tscoll/cficoll/TestPrimary"); 68 addTest(root, &TestPrimary, "tscoll/cfintst/TestPrimary");
69 addTest(root, &TestTertiary, "tscoll/cficoll/TestTertiary"); 69 addTest(root, &TestTertiary, "tscoll/cfintst/TestTertiary");
70 70
71 71
72 72
73 } 73 }
74 74
75 75
76 static void TestTertiary( ) 76 static void TestTertiary( )
77 { 77 {
78 78
79 int32_t i; 79 int32_t i;
(...skipping 13 matching lines...) Expand all
93 93
94 static void TestPrimary() 94 static void TestPrimary()
95 { 95 {
96 96
97 int32_t i; 97 int32_t i;
98 UErrorCode status = U_ZERO_ERROR; 98 UErrorCode status = U_ZERO_ERROR;
99 myCollation = ucol_open("fi_FI@collation=standard", &status); 99 myCollation = ucol_open("fi_FI@collation=standard", &status);
100 if(U_FAILURE(status)){ 100 if(U_FAILURE(status)){
101 log_err_status(status, "ERROR: in creation of rule based collator: %s\n" , myErrorName(status)); 101 log_err_status(status, "ERROR: in creation of rule based collator: %s\n" , myErrorName(status));
102 } 102 }
103 log_verbose("Testing Finnish Collation with Tertiary strength\n"); 103 log_verbose("Testing Finnish Collation with Primary strength\n");
104 ucol_setStrength(myCollation, UCOL_PRIMARY); 104 ucol_setStrength(myCollation, UCOL_PRIMARY);
105 for (i = 4; i < 5; i++) 105 for (i = 4; i < 5; i++)
106 { 106 {
107 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]); 107 doTest(myCollation, testSourceCases[i], testTargetCases[i], results[i]);
108 } 108 }
109 ucol_close(myCollation); 109 ucol_close(myCollation);
110 } 110 }
111 111
112 #endif /* #if !UCONFIG_NO_COLLATION */ 112 #endif /* #if !UCONFIG_NO_COLLATION */
OLDNEW
« no previous file with comments | « source/test/cintltst/cdtrgtst.c ('k') | source/test/cintltst/cg7coll.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698