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

Unified Diff: source/test/intltest/strtest.cpp

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/intltest/simplethread.cpp ('k') | source/test/intltest/thcoll.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: source/test/intltest/strtest.cpp
diff --git a/source/test/intltest/strtest.cpp b/source/test/intltest/strtest.cpp
index 2081454d5fead6ffbeaea7aa021acea079485c31..5075fa5fc8e1a9b2eee103822d58cc64c7b2c839 100644
--- a/source/test/intltest/strtest.cpp
+++ b/source/test/intltest/strtest.cpp
@@ -1,6 +1,6 @@
/********************************************************************
* COPYRIGHT:
- * Copyright (c) 1997-2012, International Business Machines Corporation and
+ * Copyright (c) 1997-2015, International Business Machines Corporation and
* others. All Rights Reserved.
********************************************************************/
/* file name: strtest.cpp
@@ -521,4 +521,14 @@ StringTest::TestCharString() {
if (0 != strcmp(expected, chStr.data()) || (int32_t)strlen(expected) != chStr.length()) {
errln("CharString.getAppendBuffer().append(**) failed.");
}
+
+ UErrorCode ec = U_ZERO_ERROR;
+ chStr.clear();
+ chStr.appendInvariantChars(UnicodeString("The '@' character is not invariant."), ec);
+ if (ec != U_INVARIANT_CONVERSION_ERROR) {
+ errln("%s:%d expected U_INVARIANT_CONVERSION_ERROR, got %s", __FILE__, __LINE__, u_errorName(ec));
+ }
+ if (chStr.length() != 0) {
+ errln("%s:%d expected length() = 0, got %d", __FILE__, __LINE__, chStr.length());
+ }
}
« no previous file with comments | « source/test/intltest/simplethread.cpp ('k') | source/test/intltest/thcoll.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698