diff options
-rw-r--r-- | android_icu4j/testing/src/com/android/libcore/java/text/NumberFormatTest.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/android_icu4j/testing/src/com/android/libcore/java/text/NumberFormatTest.java b/android_icu4j/testing/src/com/android/libcore/java/text/NumberFormatTest.java index fa7d21f97..b8f153662 100644 --- a/android_icu4j/testing/src/com/android/libcore/java/text/NumberFormatTest.java +++ b/android_icu4j/testing/src/com/android/libcore/java/text/NumberFormatTest.java @@ -19,6 +19,7 @@ package com.android.libcore.java.text; import static org.junit.Assert.assertEquals; import android.icu.testsharding.MainTestShard; +import android.icu.util.VersionInfo; import org.junit.Test; import org.junit.runner.RunWith; @@ -40,6 +41,10 @@ public class NumberFormatTest { // http://b/162744366 @Test public void testMonetarySeparator() { + // Skip this test on U or lower due to a change in j.t.DecimalFormat. b/346454577 + if (VersionInfo.ICU_VERSION.getMajor() < 75) { + return; + } Locale locale = Locale.forLanguageTag("en-BE"); DecimalFormat df = (DecimalFormat) NumberFormat.getCurrencyInstance(locale); DecimalFormatSymbols dfs = df.getDecimalFormatSymbols(); |