]> source.dussan.org Git - poi.git/commitdiff
support empty field param for DCount
authorPJ Fanning <fanningpj@apache.org>
Wed, 25 May 2022 15:06:30 +0000 (15:06 +0000)
committerPJ Fanning <fanningpj@apache.org>
Wed, 25 May 2022 15:06:30 +0000 (15:06 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1901244 13f79535-47bb-0310-9956-ffa450edef68

poi/src/test/java/org/apache/poi/ss/formula/functions/TestDCount.java

index c970db1638abf2c28f73826b2f5aa8cbc474e590..dcd9b83bae321be844909dcf37165b26ab450a39 100644 (file)
@@ -41,8 +41,7 @@ public class TestDCount {
             HSSFCell cell = wb.getSheetAt(0).getRow(0).createCell(100);
             assertDouble(fe, cell, "DCOUNT(A5:E11,,A1:A2)", 3);
             assertDouble(fe, cell, "DCOUNT(A5:E11, \"Age\", A1:A2)", 2);
-            //next one returns 0 in error
-            //assertDouble(fe, cell, "DCOUNT(A5:E11, \"Age\", A1:F2)", 1);
+            assertDouble(fe, cell, "DCOUNT(A5:E11, \"Age\", A1:F2)", 1);
         }
     }