diff options
author | Elliott Hughes <enh@google.com> | 2014-08-23 00:16:08 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2014-08-23 00:16:09 +0000 |
commit | 73157cacca0948d867a38c4fb91c9b4193bc3ee6 (patch) | |
tree | a1a29910f45a4a685be1f5b73042dd1aa4c287d2 | |
parent | 200f125b9f99ef5bdff03d9a8e2f762640bd14e5 (diff) | |
parent | ef91d1dbd60e9a245b121e3d31c8aad0332a64c7 (diff) | |
download | libcore-73157cacca0948d867a38c4fb91c9b4193bc3ee6.zip libcore-73157cacca0948d867a38c4fb91c9b4193bc3ee6.tar.gz libcore-73157cacca0948d867a38c4fb91c9b4193bc3ee6.tar.bz2 |
Merge "Fix the Turkish Lira test."
-rw-r--r-- | harmony-tests/src/test/java/org/apache/harmony/tests/java/text/Support_DecimalFormat.java | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/Support_DecimalFormat.java b/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/Support_DecimalFormat.java index 9a55bc3..b8d7519 100644 --- a/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/Support_DecimalFormat.java +++ b/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/Support_DecimalFormat.java @@ -76,11 +76,13 @@ public class Support_DecimalFormat extends Support_Format { // test currency instance with TR Locale number = new Double(350.76); format = (DecimalFormat) NumberFormat.getCurrencyInstance(new Locale("tr", "TR")); - text = "350,76" + "\u00a0" + "TL"; - t_FormatWithField(22, format, number, text, NumberFormat.Field.INTEGER, 0, 3); - t_FormatWithField(22, format, number, text, NumberFormat.Field.DECIMAL_SEPARATOR, 3, 4); - t_FormatWithField(22, format, number, text, NumberFormat.Field.FRACTION, 4, 6); - t_FormatWithField(23, format, number, text, NumberFormat.Field.CURRENCY, 7, 9); + // Turkey either uses "123,45 TL" or "₺123,45"; google3 uses the former because most + // platforms' fonts don't include U+20BA TURKISH LIRA SIGN. http://b/16727554. + text = "₺350,76"; + t_FormatWithField(23, format, number, text, NumberFormat.Field.CURRENCY, 0, 1); + t_FormatWithField(22, format, number, text, NumberFormat.Field.INTEGER, 1, 4); + t_FormatWithField(22, format, number, text, NumberFormat.Field.DECIMAL_SEPARATOR, 4, 5); + t_FormatWithField(22, format, number, text, NumberFormat.Field.FRACTION, 5, 7); // test fields that are not included in the formatted text t_FormatWithField(25, format, number, text, NumberFormat.Field.GROUPING_SEPARATOR, 0, 0); |