Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(341)

Unified Diff: icu4c/source/test/cintltst/cstrcase.c

Issue 311670043: ICU ticket #12410: CaseMap with Edits (Closed) Base URL: http://source.icu-project.org/repos/icu/branches/markus/caseix/
Patch Set: changes for review feedback (for real now) Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « icu4c/source/i18n/zonemeta.cpp ('k') | icu4c/source/test/cintltst/cucdtst.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: icu4c/source/test/cintltst/cstrcase.c
===================================================================
--- icu4c/source/test/cintltst/cstrcase.c (revision 39545)
+++ icu4c/source/test/cintltst/cstrcase.c (revision 39683)
@@ -27,6 +27,7 @@
#include "unicode/ucasemap.h"
#include "cmemory.h"
#include "cintltst.h"
+#include "ucasemap_imp.h"
#include "ustr_imp.h"
/* test string case mapping functions --------------------------------------- */
@@ -744,11 +745,12 @@
if(0!=strcmp(locale, "tr")) {
log_err("ucasemap_getLocale(ucasemap_open(\"tur\"))==%s!=\"tr\"\n", locale);
}
- /* overly long locale IDs get truncated to their language code to avoid unnecessary allocation */
+ /* overly long locale IDs may get truncated to their language code to avoid unnecessary allocation */
ucasemap_setLocale(csm, "I-kLInGOn-the-quick-brown-fox-jumps-over-the-lazy-dog", &errorCode);
locale=ucasemap_getLocale(csm);
- if(0!=strcmp(locale, "i-klingon")) {
- log_err("ucasemap_getLocale(ucasemap_setLocale(\"I-kLInGOn-the-quick-br...\"))==%s!=\"i-klingon\"\n", locale);
+ if(0!=strncmp(locale, "i-klingon", 9)) {
+ log_err("ucasemap_getLocale(ucasemap_setLocale(\"I-kLInGOn-the-quick-br...\"))==%s\n"
+ " does not start with \"i-klingon\"\n", locale);
}
errorCode=U_ZERO_ERROR;
« no previous file with comments | « icu4c/source/i18n/zonemeta.cpp ('k') | icu4c/source/test/cintltst/cucdtst.c » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b