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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « source/test/cintltst/usrchdat.c ('k') | source/test/depstest/dependencies.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/test/cintltst/usrchtst.c
diff --git a/source/test/cintltst/usrchtst.c b/source/test/cintltst/usrchtst.c
index 8c88fe2fbbfb1fd9edc7c607e3c0d3c90a60c073..7e95f98bd7a1a5df944552b3f05a9e4676e6630a 100644
--- a/source/test/cintltst/usrchtst.c
+++ b/source/test/cintltst/usrchtst.c
@@ -1,5 +1,5 @@
/********************************************************************
- * Copyright (c) 2001-2011 International Business Machines
+ * Copyright (c) 2001-2011,2015 International Business Machines
* Corporation and others. All Rights Reserved.
********************************************************************
* File usrchtst.c
@@ -2987,6 +2987,24 @@ static void TestMatchFollowedByIgnorables(void) {
ucol_close(coll);
}
+static void TestIndicPrefixMatch(void)
+{
+ int count = 0;
+ UErrorCode status = U_ZERO_ERROR;
+ open(&status);
+ if (U_FAILURE(status)) {
+ log_err_status(status, "Unable to open static collators %s\n", u_errorName(status));
+ return;
+ }
+ while (INDICPREFIXMATCH[count].text != NULL) {
+ if (!assertEqual(INDICPREFIXMATCH[count])) {
+ log_err("Error at test number %d\n", count);
+ }
+ count ++;
+ }
+ close();
+}
+
/**
* addSearchTest
*/
@@ -3049,6 +3067,7 @@ void addSearchTest(TestNode** root)
addTest(root, &TestPCEBuffer_100df, "tscoll/usrchtst/TestPCEBuffer/1_00df");
addTest(root, &TestPCEBuffer_2surr, "tscoll/usrchtst/TestPCEBuffer/2_dfff");
addTest(root, &TestMatchFollowedByIgnorables, "tscoll/usrchtst/TestMatchFollowedByIgnorables");
+ addTest(root, &TestIndicPrefixMatch, "tscoll/usrchtst/TestIndicPrefixMatch");
}
#endif /* #if !UCONFIG_NO_COLLATION */
« 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