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

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

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/cintltst/usrchdat.c ('k') | source/test/depstest/dependencies.txt » ('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) 2001-2011 International Business Machines 2 * Copyright (c) 2001-2011,2015 International Business Machines
3 * Corporation and others. All Rights Reserved. 3 * Corporation and others. All Rights Reserved.
4 ******************************************************************** 4 ********************************************************************
5 * File usrchtst.c 5 * File usrchtst.c
6 * Modification History: 6 * Modification History:
7 * Name Date Description 7 * Name Date Description
8 * synwee July 19 2001 creation 8 * synwee July 19 2001 creation
9 ********************************************************************/ 9 ********************************************************************/
10 10
11 #include "unicode/utypes.h" 11 #include "unicode/utypes.h"
12 12
(...skipping 2967 matching lines...) Expand 10 before | Expand all | Expand 10 after
2980 if (matchLength != expectedMatchLength) { 2980 if (matchLength != expectedMatchLength) {
2981 log_err("Error: matchLength=%d, expected=%d\n", matchLength, expecte dMatchLength); 2981 log_err("Error: matchLength=%d, expected=%d\n", matchLength, expecte dMatchLength);
2982 } 2982 }
2983 } 2983 }
2984 2984
2985 usearch_close(usearch); 2985 usearch_close(usearch);
2986 ubrk_close(ubrk); 2986 ubrk_close(ubrk);
2987 ucol_close(coll); 2987 ucol_close(coll);
2988 } 2988 }
2989 2989
2990 static void TestIndicPrefixMatch(void)
2991 {
2992 int count = 0;
2993 UErrorCode status = U_ZERO_ERROR;
2994 open(&status);
2995 if (U_FAILURE(status)) {
2996 log_err_status(status, "Unable to open static collators %s\n", u_errorNa me(status));
2997 return;
2998 }
2999 while (INDICPREFIXMATCH[count].text != NULL) {
3000 if (!assertEqual(INDICPREFIXMATCH[count])) {
3001 log_err("Error at test number %d\n", count);
3002 }
3003 count ++;
3004 }
3005 close();
3006 }
3007
2990 /** 3008 /**
2991 * addSearchTest 3009 * addSearchTest
2992 */ 3010 */
2993 3011
2994 void addSearchTest(TestNode** root) 3012 void addSearchTest(TestNode** root)
2995 { 3013 {
2996 addTest(root, &TestStart, "tscoll/usrchtst/TestStart"); 3014 addTest(root, &TestStart, "tscoll/usrchtst/TestStart");
2997 addTest(root, &TestOpenClose, "tscoll/usrchtst/TestOpenClose"); 3015 addTest(root, &TestOpenClose, "tscoll/usrchtst/TestOpenClose");
2998 addTest(root, &TestInitialization, "tscoll/usrchtst/TestInitialization"); 3016 addTest(root, &TestInitialization, "tscoll/usrchtst/TestInitialization");
2999 addTest(root, &TestBasic, "tscoll/usrchtst/TestBasic"); 3017 addTest(root, &TestBasic, "tscoll/usrchtst/TestBasic");
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
3042 addTest(root, &TestEnd, "tscoll/usrchtst/TestEnd"); 3060 addTest(root, &TestEnd, "tscoll/usrchtst/TestEnd");
3043 addTest(root, &TestNumeric, "tscoll/usrchtst/TestNumeric"); 3061 addTest(root, &TestNumeric, "tscoll/usrchtst/TestNumeric");
3044 addTest(root, &TestDiacriticMatch, "tscoll/usrchtst/TestDiacriticMatch"); 3062 addTest(root, &TestDiacriticMatch, "tscoll/usrchtst/TestDiacriticMatch");
3045 addTest(root, &TestForwardBackward, "tscoll/usrchtst/TestForwardBackward"); 3063 addTest(root, &TestForwardBackward, "tscoll/usrchtst/TestForwardBackward");
3046 addTest(root, &TestSearchForNull, "tscoll/usrchtst/TestSearchForNull"); 3064 addTest(root, &TestSearchForNull, "tscoll/usrchtst/TestSearchForNull");
3047 addTest(root, &TestStrengthIdentical, "tscoll/usrchtst/TestStrengthIdentical "); 3065 addTest(root, &TestStrengthIdentical, "tscoll/usrchtst/TestStrengthIdentical ");
3048 addTest(root, &TestUsingSearchCollator, "tscoll/usrchtst/TestUsingSearchColl ator"); 3066 addTest(root, &TestUsingSearchCollator, "tscoll/usrchtst/TestUsingSearchColl ator");
3049 addTest(root, &TestPCEBuffer_100df, "tscoll/usrchtst/TestPCEBuffer/1_00df"); 3067 addTest(root, &TestPCEBuffer_100df, "tscoll/usrchtst/TestPCEBuffer/1_00df");
3050 addTest(root, &TestPCEBuffer_2surr, "tscoll/usrchtst/TestPCEBuffer/2_dfff"); 3068 addTest(root, &TestPCEBuffer_2surr, "tscoll/usrchtst/TestPCEBuffer/2_dfff");
3051 addTest(root, &TestMatchFollowedByIgnorables, "tscoll/usrchtst/TestMatchFoll owedByIgnorables"); 3069 addTest(root, &TestMatchFollowedByIgnorables, "tscoll/usrchtst/TestMatchFoll owedByIgnorables");
3070 addTest(root, &TestIndicPrefixMatch, "tscoll/usrchtst/TestIndicPrefixMatch") ;
3052 } 3071 }
3053 3072
3054 #endif /* #if !UCONFIG_NO_COLLATION */ 3073 #endif /* #if !UCONFIG_NO_COLLATION */
OLDNEW
« no previous file with comments | « source/test/cintltst/usrchdat.c ('k') | source/test/depstest/dependencies.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698