summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeil Fuller <nfuller@google.com>2014-09-26 14:28:51 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-09-26 14:28:51 +0000
commit77afa6c64f0af91224368452e3cce74338d667d2 (patch)
tree6826c30a9e6cc282d0875e8843a383b3198efeba
parentdf014f5f051130daf16599c8989bc157fe8dda5b (diff)
parentd90019a2d2e56ef56b412f7c11264148b075f4ba (diff)
downloadlibcore-77afa6c64f0af91224368452e3cce74338d667d2.zip
libcore-77afa6c64f0af91224368452e3cce74338d667d2.tar.gz
libcore-77afa6c64f0af91224368452e3cce74338d667d2.tar.bz2
Merge "Fix test_formatToCharacterIterator_original"
-rw-r--r--harmony-tests/src/test/java/org/apache/harmony/tests/java/text/Support_DecimalFormat.java18
1 files changed, 10 insertions, 8 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 b8d7519..0c6a824 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
@@ -154,19 +154,20 @@ public class Support_DecimalFormat extends Support_Format {
private static Vector<FieldContainer> getPositiveCurrencyVectorTR() {
Vector<FieldContainer> v = new Vector<FieldContainer>();
- v.add(new FieldContainer(0, 3, NumberFormat.Field.INTEGER));
- v.add(new FieldContainer(3, 4, NumberFormat.Field.DECIMAL_SEPARATOR));
- v.add(new FieldContainer(4, 6, NumberFormat.Field.FRACTION));
- v.add(new FieldContainer(7, 9, NumberFormat.Field.CURRENCY));
+ v.add(new FieldContainer(0, 1, NumberFormat.Field.CURRENCY));
+ v.add(new FieldContainer(1, 4, NumberFormat.Field.INTEGER));
+ v.add(new FieldContainer(4, 5, NumberFormat.Field.DECIMAL_SEPARATOR));
+ v.add(new FieldContainer(5, 7, NumberFormat.Field.FRACTION));
return v;
}
private static Vector<FieldContainer> getNegativeCurrencyVectorTR() {
Vector<FieldContainer> v = new Vector<FieldContainer>();
- v.add(new FieldContainer(1, 4, NumberFormat.Field.INTEGER));
- v.add(new FieldContainer(4, 5, NumberFormat.Field.DECIMAL_SEPARATOR));
- v.add(new FieldContainer(5, 7, NumberFormat.Field.FRACTION));
- v.add(new FieldContainer(8, 10, NumberFormat.Field.CURRENCY));
+ v.add(new FieldContainer(0, 1, NumberFormat.Field.SIGN));
+ v.add(new FieldContainer(1, 2, NumberFormat.Field.CURRENCY));
+ v.add(new FieldContainer(2, 5, NumberFormat.Field.INTEGER));
+ v.add(new FieldContainer(5, 6, NumberFormat.Field.DECIMAL_SEPARATOR));
+ v.add(new FieldContainer(6, 8, NumberFormat.Field.FRACTION));
return v;
}
@@ -181,6 +182,7 @@ public class Support_DecimalFormat extends Support_Format {
private static Vector<FieldContainer> getNegativeCurrencyVectorUS() {
Vector<FieldContainer> v = new Vector<FieldContainer>();
+ v.add(new FieldContainer(0, 1, NumberFormat.Field.SIGN));
v.add(new FieldContainer(1, 2, NumberFormat.Field.CURRENCY));
v.add(new FieldContainer(2, 5, NumberFormat.Field.INTEGER));
v.add(new FieldContainer(5, 6, NumberFormat.Field.DECIMAL_SEPARATOR));