mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-20 20:19:32 +00:00
ICU-11914 Add more detail to check failing tests.
X-SVN-Rev: 38396
This commit is contained in:
parent
92e4ca4448
commit
57ccd73a91
1 changed files with 15 additions and 9 deletions
|
@ -4412,10 +4412,15 @@ public class NumberFormatTest extends com.ibm.icu.dev.test.TestFmwk {
|
|||
result.add(new FieldContainer(start, end, attribute, value));
|
||||
iterator.setIndex(end);
|
||||
}
|
||||
assertTrue("Comparing vector results", v1.size() == result.size() && v1.containsAll(result));
|
||||
Set<AttributedCharacterIterator.Attribute> resultUS = iterator.getAllAttributeKeys();
|
||||
assertEquals("comparing vector sizes", 4, resultUS.size());
|
||||
|
||||
assertEquals("Comparing vector length for " + numFmtted,
|
||||
v1.size(), result.size());
|
||||
assertTrue("Comparing vector results for " + numFmtted,
|
||||
v1.containsAll(result));
|
||||
|
||||
Set<AttributedCharacterIterator.Attribute> resultUS = iterator.getAllAttributeKeys();
|
||||
assertEquals("comparing vector sizes for " + numFmtted,
|
||||
4, resultUS.size());
|
||||
|
||||
List<FieldContainer> v2 = new ArrayList<FieldContainer>(7);
|
||||
v2.add(new FieldContainer(0, 1, NumberFormat.Field.INTEGER));
|
||||
v2.add(new FieldContainer(1, 2, NumberFormat.Field.DECIMAL_SEPARATOR));
|
||||
|
@ -4424,7 +4429,7 @@ public class NumberFormatTest extends com.ibm.icu.dev.test.TestFmwk {
|
|||
v2.add(new FieldContainer(6, 7, NumberFormat.Field.EXPONENT_SIGN));
|
||||
v2.add(new FieldContainer(7, 8, NumberFormat.Field.EXPONENT));
|
||||
DecimalFormat fmt2 = new DecimalFormat("0.###E+0", US);
|
||||
|
||||
|
||||
List<FieldContainer> result2 = new ArrayList<FieldContainer>();
|
||||
|
||||
numFmtted = fmt2.format(number);
|
||||
|
@ -4439,7 +4444,7 @@ public class NumberFormatTest extends com.ibm.icu.dev.test.TestFmwk {
|
|||
iterator.setIndex(end);
|
||||
}
|
||||
assertTrue("Comparing vector results", v2.size() == result2.size() && v2.containsAll(result2));
|
||||
|
||||
|
||||
List<FieldContainer> v3 = new ArrayList<FieldContainer>(7);
|
||||
v3.add(new FieldContainer(0, 1, NumberFormat.Field.SIGN));
|
||||
v3.add(new FieldContainer(1, 2, NumberFormat.Field.INTEGER));
|
||||
|
@ -4470,8 +4475,9 @@ public class NumberFormatTest extends com.ibm.icu.dev.test.TestFmwk {
|
|||
result3.add(new FieldContainer(start, end, attribute, value));
|
||||
iterator.setIndex(end);
|
||||
}
|
||||
assertTrue("Comparing vector results for " + fmtNumberBigInt, v3.size() == result3.size() && v3.containsAll(result3));
|
||||
|
||||
assertEquals("Comparing vector results for " + fmtNumberBigInt, v3.size() ,result3.size());
|
||||
assertTrue("Comparing vector results for " + fmtNumberBigInt, v3.containsAll(result3));
|
||||
|
||||
List<FieldContainer> v4 = new ArrayList<FieldContainer>(7);
|
||||
v4.add(new FieldContainer(0, 1, NumberFormat.Field.SIGN));
|
||||
v4.add(new FieldContainer(1, 2, NumberFormat.Field.INTEGER));
|
||||
|
@ -4480,7 +4486,7 @@ public class NumberFormatTest extends com.ibm.icu.dev.test.TestFmwk {
|
|||
v4.add(new FieldContainer(6, 7, NumberFormat.Field.EXPONENT_SYMBOL));
|
||||
v4.add(new FieldContainer(7, 8, NumberFormat.Field.EXPONENT_SIGN));
|
||||
v4.add(new FieldContainer(8, 9, NumberFormat.Field.EXPONENT));
|
||||
|
||||
|
||||
java.math.BigDecimal numberBigD = new java.math.BigDecimal(-123456789);
|
||||
String fmtNumberBigDExp = fmt2.format(numberBigD);
|
||||
String fmtNumberBigD = outFmt.format(numberBigD);
|
||||
|
|
Loading…
Add table
Reference in a new issue