From ec43e183240a02fe9e06d710c4ffcf86c0563fb0 Mon Sep 17 00:00:00 2001 From: PJ Fanning Date: Wed, 25 May 2022 15:06:30 +0000 Subject: [PATCH] support empty field param for DCount git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1901244 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/poi/ss/formula/functions/TestDCount.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/poi/src/test/java/org/apache/poi/ss/formula/functions/TestDCount.java b/poi/src/test/java/org/apache/poi/ss/formula/functions/TestDCount.java index c970db1638..dcd9b83bae 100644 --- a/poi/src/test/java/org/apache/poi/ss/formula/functions/TestDCount.java +++ b/poi/src/test/java/org/apache/poi/ss/formula/functions/TestDCount.java @@ -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); } }