]> granicus.if.org Git - icu/commitdiff
ICU-12780 integrate CLDR release-30-0-2 into icu4j trunk
authorPeter Edberg <pedberg@unicode.org>
Mon, 17 Oct 2016 22:25:05 +0000 (22:25 +0000)
committerPeter Edberg <pedberg@unicode.org>
Mon, 17 Oct 2016 22:25:05 +0000 (22:25 +0000)
X-SVN-Rev: 39461

icu4j/main/shared/data/icudata.jar
icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/NumberFormatTest.java

index 3d4c1a882eca6d253f04d3bdf58da8c9477be699..e3e4d1a9eb3bd516e6d38fab97f21ff7e1dcc49a 100755 (executable)
@@ -1,3 +1,3 @@
 version https://git-lfs.github.com/spec/v1
-oid sha256:6d0aaed2ae64f764602aa03d73740db6b379fc6d67da106211e493e4c0d0ab81
-size 12101248
+oid sha256:1a36926285dcd762cd3ed40f9bab4c6c94bcf9f9e9bfb895407633a5f89a7504
+size 12101343
index 2e64fc69ff35dc04910e0acbc4dd531becd7cbf0..897846b2be8a8f77e6846c52674fa2badf8a2147 100644 (file)
@@ -4914,4 +4914,21 @@ public class NumberFormatTest extends TestFmwk {
 
         expect2(fmt, 1234567.89, "(1)^^(2)(3)(4)^^(5)(6)(7)~~(8)(9)");
     }
+
+    @Test
+    public void TestArabicCurrencyPatternInfo() {
+        ULocale arLocale = new ULocale("ar");
+        DecimalFormatSymbols symbols = new DecimalFormatSymbols(arLocale);
+        String currSpacingPatn = symbols.getPatternForCurrencySpacing(DecimalFormatSymbols.CURRENCY_SPC_CURRENCY_MATCH, true);
+        if (currSpacingPatn==null || currSpacingPatn.length() == 0) {
+            errln("locale ar, getPatternForCurrencySpacing returns null or 0-length string");
+        }
+        
+        DecimalFormat currAcctFormat = (DecimalFormat)NumberFormat.getInstance(arLocale, NumberFormat.ACCOUNTINGCURRENCYSTYLE);
+        String currAcctPatn = currAcctFormat.toPattern();
+        if (currAcctPatn==null || currAcctPatn.length() == 0) {
+            errln("locale ar, toPattern for ACCOUNTINGCURRENCYSTYLE returns null or 0-length string");
+        }
+    }
 }