support empty field param for DCount

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1901244 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2022-05-25 15:06:30 +00:00
parent bb4ed0b87a
commit ec43e18324

View 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);
}
}