whitespace
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1717931 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
26abacebaf
commit
eca89530d3
@ -119,9 +119,7 @@ public class TestDataFormatter {
|
|||||||
DataFormatter dfUS = new DataFormatter(Locale.US);
|
DataFormatter dfUS = new DataFormatter(Locale.US);
|
||||||
|
|
||||||
// Without currency symbols
|
// Without currency symbols
|
||||||
String[] formats = new String[] {
|
String[] formats = new String[] { "#,##0.00;[Blue](#,##0.00)" };
|
||||||
"#,##0.00;[Blue](#,##0.00)",
|
|
||||||
};
|
|
||||||
for (String format : formats) {
|
for (String format : formats) {
|
||||||
assertEquals(
|
assertEquals(
|
||||||
"Wrong format for: " + format,
|
"Wrong format for: " + format,
|
||||||
@ -136,9 +134,7 @@ public class TestDataFormatter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// With
|
// With
|
||||||
formats = new String[] {
|
formats = new String[] { "$#,##0.00;[Red]($#,##0.00)" };
|
||||||
"$#,##0.00;[Red]($#,##0.00)"
|
|
||||||
};
|
|
||||||
for (String format : formats) {
|
for (String format : formats) {
|
||||||
assertEquals(
|
assertEquals(
|
||||||
"Wrong format for: " + format,
|
"Wrong format for: " + format,
|
||||||
@ -245,8 +241,8 @@ public class TestDataFormatter {
|
|||||||
assertEquals("321 321/1000", dfUS.formatRawCellContents(321.321, -1, "# #/##########"));
|
assertEquals("321 321/1000", dfUS.formatRawCellContents(321.321, -1, "# #/##########"));
|
||||||
|
|
||||||
// Not a valid fraction formats (too many #/# or ?/?) - hence the strange expected results
|
// Not a valid fraction formats (too many #/# or ?/?) - hence the strange expected results
|
||||||
|
/*
|
||||||
/* assertEquals("321 / ?/?", dfUS.formatRawCellContents(321.321, -1, "# #/# ?/?"));
|
assertEquals("321 / ?/?", dfUS.formatRawCellContents(321.321, -1, "# #/# ?/?"));
|
||||||
assertEquals("321 / /", dfUS.formatRawCellContents(321.321, -1, "# #/# #/#"));
|
assertEquals("321 / /", dfUS.formatRawCellContents(321.321, -1, "# #/# #/#"));
|
||||||
assertEquals("321 ?/? ?/?", dfUS.formatRawCellContents(321.321, -1, "# ?/? ?/?"));
|
assertEquals("321 ?/? ?/?", dfUS.formatRawCellContents(321.321, -1, "# ?/? ?/?"));
|
||||||
assertEquals("321 ?/? / /", dfUS.formatRawCellContents(321.321, -1, "# ?/? #/# #/#"));
|
assertEquals("321 ?/? / /", dfUS.formatRawCellContents(321.321, -1, "# ?/? #/# #/#"));
|
||||||
|
Loading…
Reference in New Issue
Block a user