From: Markus Scherer Date: Sat, 17 Feb 2018 00:19:25 +0000 (+0000) Subject: ICU-13529 minor test code cleanup X-Git-Tag: release-61-rc~77 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=555c415e18a598847775e16518043b5413159ce5;p=icu ICU-13529 minor test code cleanup X-SVN-Rev: 40944 --- diff --git a/icu4c/source/test/intltest/itrbnf.cpp b/icu4c/source/test/intltest/itrbnf.cpp index 4689df40745..e6e90780145 100644 --- a/icu4c/source/test/intltest/itrbnf.cpp +++ b/icu4c/source/test/intltest/itrbnf.cpp @@ -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 diff --git a/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/RBNFParseTest.java b/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/RBNFParseTest.java index e5e9f30d71e..daf1219158f 100644 --- a/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/RBNFParseTest.java +++ b/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/RBNFParseTest.java @@ -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) {