]> granicus.if.org Git - icu/commitdiff
ICU-12994 fix platform string encoding issue in TestChineseTradHK
authorPeter Edberg <pedberg@unicode.org>
Fri, 24 Mar 2017 16:51:14 +0000 (16:51 +0000)
committerPeter Edberg <pedberg@unicode.org>
Fri, 24 Mar 2017 16:51:14 +0000 (16:51 +0000)
X-SVN-Rev: 39927

icu4c/source/test/intltest/listformattertest.cpp

index 31a29cd382b814a05236bcc1de0448678ea48d49..af49baa05dd51cb9b69a76384b6bc49607592ea0 100644 (file)
@@ -179,11 +179,13 @@ void ListFormatterTest::TestNynorsk() {
 // has only partial data for the listPattern element (overriding
 // some of the parent data). #12994
 void ListFormatterTest::TestChineseTradHK() {
+    UnicodeString and_string = UnicodeString("\\u53CA", -1, US_INV).unescape();
+    UnicodeString comma_string = UnicodeString("\\u3001", -1, US_INV).unescape();
     UnicodeString results[4] = {
         one,
-        one + "\u53CA" + two,
-        one + "\u3001" + two + "\u53CA" + three,
-        one + "\u3001" + two + "\u3001" + three + "\u53CA" + four
+        one + and_string + two,
+        one + comma_string + two + and_string + three,
+        one + comma_string + two + comma_string + three + and_string + four
     };
 
     CheckFourCases("zh_Hant_HK", one, two, three, four, results);