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

Side by Side Diff: source/test/intltest/restsnew.cpp

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/intltest/restest.cpp ('k') | source/test/intltest/rndmcoll.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-2014, International Business Machines
3 * Corporation and others. All Rights Reserved. 3 * Corporation and others. All Rights Reserved.
4 ********************************************************************/ 4 ********************************************************************/
5 5
6 #include "unicode/utypes.h" 6 #include "unicode/utypes.h"
7 7
8 #include "cstring.h" 8 #include "cstring.h"
9 #include "unicode/unistr.h" 9 #include "unicode/unistr.h"
10 #include "unicode/resbund.h" 10 #include "unicode/resbund.h"
11 #include "restsnew.h" 11 #include "restsnew.h"
12 12
(...skipping 1010 matching lines...) Expand 10 before | Expand all | Expand 10 after
1023 if(U_FAILURE(status)) 1023 if(U_FAILURE(status))
1024 { 1024 {
1025 dataerrln("Could not load testdata.dat %s \n",u_errorName(status)); 1025 dataerrln("Could not load testdata.dat %s \n",u_errorName(status));
1026 return; 1026 return;
1027 } 1027 }
1028 1028
1029 ResourceBundle theBundle(testdatapath, "testtypes", status); 1029 ResourceBundle theBundle(testdatapath, "testtypes", status);
1030 ResourceBundle bundle(testdatapath, Locale("te_IN"),status); 1030 ResourceBundle bundle(testdatapath, Locale("te_IN"),status);
1031 1031
1032 UnicodeString emptyStr = theBundle.getStringEx("emptystring", status); 1032 UnicodeString emptyStr = theBundle.getStringEx("emptystring", status);
1033 if(!emptyStr.length()==0) { 1033 if(emptyStr.length() != 0) {
1034 logln("Empty string returned invalid value\n"); 1034 logln("Empty string returned invalid value\n");
1035 } 1035 }
1036 1036
1037 CONFIRM_UErrorCode(status, U_ZERO_ERROR); 1037 CONFIRM_UErrorCode(status, U_ZERO_ERROR);
1038 1038
1039 /* This test reads the string "abc\u0000def" from the bundle */ 1039 /* This test reads the string "abc\u0000def" from the bundle */
1040 /* if everything is working correctly, the size of this string */ 1040 /* if everything is working correctly, the size of this string */
1041 /* should be 7. Everything else is a wrong answer, esp. 3 and 6*/ 1041 /* should be 7. Everything else is a wrong answer, esp. 3 and 6*/
1042 1042
1043 strcpy(action, "getting and testing of string with embeded zero"); 1043 strcpy(action, "getting and testing of string with embeded zero");
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
1176 ResourceBundle rootRes(NULL, "root", status); 1176 ResourceBundle rootRes(NULL, "root", status);
1177 rootRes.getWithFallback("calendar", status).getWithFallback("islamic-civil", status).getWithFallback("DateTime", status); 1177 rootRes.getWithFallback("calendar", status).getWithFallback("islamic-civil", status).getWithFallback("DateTime", status);
1178 if(U_SUCCESS(status)) { 1178 if(U_SUCCESS(status)) {
1179 errln("Root's Islamic-civil's DateTime resource exists. How did it get h ere?\n"); 1179 errln("Root's Islamic-civil's DateTime resource exists. How did it get h ere?\n");
1180 } 1180 }
1181 status = U_ZERO_ERROR; 1181 status = U_ZERO_ERROR;
1182 1182
1183 } 1183 }
1184 //eof 1184 //eof
1185 1185
OLDNEW
« no previous file with comments | « source/test/intltest/restest.cpp ('k') | source/test/intltest/rndmcoll.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698