]> granicus.if.org Git - icu/commitdiff
ICU-13529 minor test code cleanup
authorMarkus Scherer <markus.icu@gmail.com>
Sat, 17 Feb 2018 00:19:25 +0000 (00:19 +0000)
committerMarkus Scherer <markus.icu@gmail.com>
Sat, 17 Feb 2018 00:19:25 +0000 (00:19 +0000)
X-SVN-Rev: 40944

icu4c/source/test/intltest/itrbnf.cpp
icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/RBNFParseTest.java

index 4689df40745a0134ddd1e736a6a73c2f0a9206f3..e6e9078014506d12bc14d4fc9a4c1186defbceb5 100644 (file)
@@ -2291,7 +2291,7 @@ void IntlTestRBNF::TestParseFailure() {
         u"・・・・・・・・・・・・・・・・・・・・・・・・"
     };
     for (int i = 0; i < UPRV_LENGTHOF(testData); ++i) {
-        UnicodeString spelledNumberString = UnicodeString(testData[i]).unescape();
+        UnicodeString spelledNumberString(testData[i]);
         Formattable actualNumber;
         rbnf.parse(spelledNumberString, actualNumber, status);
         if (status != U_INVALID_FORMAT_ERROR) { // I would have expected U_PARSE_ERROR, but NumberFormat::parse gives U_INVALID_FORMAT_ERROR
index e5e9f30d71ebe28e6a25caef5ea1003dacc8a7b9..daf1219158fdbeb633ab1ac14cc9f1762cddd1ae 100644 (file)
@@ -167,7 +167,7 @@ public class RBNFParseTest extends TestFmwk {
     public void TestBadParse() {
         RuleBasedNumberFormat rbnf = new RuleBasedNumberFormat(Locale.JAPAN, RuleBasedNumberFormat.SPELLOUT);
         String[] testData = {
-                "\u30FB\u30FB\u30FB\u30FB\u30FB\u30FB\u30FB\u30FB\u30FB\u30FB\u30FB\u30FB\u30FB\u30FB\u30FB\u30FB\u30FB\u30FB\u30FB\u30FB\u30FB\u30FB\u30FB\u30FB",
+                "・・・・・・・・・・・・・・・・・・・・・・・・",
         };
 
         for (String testString : testData) {