]> source.dussan.org Git - poi.git/commitdiff
bug 61049 fix ordering of builtin formulas
authorTim Allison <tallison@apache.org>
Thu, 27 Apr 2017 16:18:25 +0000 (16:18 +0000)
committerTim Allison <tallison@apache.org>
Thu, 27 Apr 2017 16:18:25 +0000 (16:18 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1792918 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/ss/usermodel/BuiltinFormats.java
src/testcases/org/apache/poi/hssf/eventusermodel/TestFormatTrackingHSSFListener.java

index 8d118817853415881bb62ef8960a46af4cfd3d80..4561476b25d7072180fb106a0eb17bf840ae5bfb 100644 (file)
@@ -113,8 +113,8 @@ public final class BuiltinFormats {
         "#,##0_);[Red](#,##0)",
         "#,##0.00_);(#,##0.00)",
         "#,##0.00_);[Red](#,##0.00)",
+               "_(* #,##0_);_(* (#,##0);_(* \"-\"_);_(@_)",
         "_(\"$\"* #,##0_);_(\"$\"* (#,##0);_(\"$\"* \"-\"_);_(@_)",
-        "_(* #,##0_);_(* (#,##0);_(* \"-\"_);_(@_)",
         "_(* #,##0.00_);_(* (#,##0.00);_(* \"-\"??_);_(@_)",
         "_(\"$\"* #,##0.00_);_(\"$\"* (#,##0.00);_(\"$\"* \"-\"??_);_(@_)",
         "mm:ss",
index ec1e9d0c20a70e5cbf98f9658542374611f83436..e617735b6ab3b4e5ec302b050eed4abc63895b07 100644 (file)
@@ -55,8 +55,8 @@ public final class TestFormatTrackingHSSFListener {
        public void testFormats() throws Exception {
                processFile("MissingBits.xls");
 
-               assertEquals("_(\"$\"* #,##0_);_(\"$\"* (#,##0);_(\"$\"* \"-\"_);_(@_)", listener.getFormatString(41));
-               assertEquals("_(* #,##0_);_(* (#,##0);_(* \"-\"_);_(@_)", listener.getFormatString(42));
+               assertEquals("_(* #,##0_);_(* (#,##0);_(* \"-\"_);_(@_)", listener.getFormatString(41));
+               assertEquals("_(\"$\"* #,##0_);_(\"$\"* (#,##0);_(\"$\"* \"-\"_);_(@_)", listener.getFormatString(42));
                assertEquals("_(* #,##0.00_);_(* (#,##0.00);_(* \"-\"??_);_(@_)", listener.getFormatString(43));
                assertEquals("_(\"$\"* #,##0.00_);_(\"$\"* (#,##0.00);_(\"$\"* \"-\"??_);_(@_)", listener.getFormatString(44));
        }