fix dget test

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1901245 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2022-05-25 15:14:44 +00:00
parent ec43e18324
commit efcd15a3c4
1 changed files with 3 additions and 4 deletions

View File

@ -42,8 +42,7 @@ public class TestDGet {
HSSFFormulaEvaluator fe = new HSSFFormulaEvaluator(wb);
HSSFCell cell = wb.getSheetAt(0).getRow(0).createCell(100);
assertError(fe, cell, "DGET(A5:E11, \"Yield\", A1:A3)", FormulaError.NUM);
//next one fails - no match found when it should match and return 10
//assertDouble(fe, cell, "DGET(A5:E11, \"Yield\", A1:F3)", 10);
assertDouble(fe, cell, "DGET(A5:E11, \"Yield\", A1:F3)", 10);
}
}
@ -52,7 +51,7 @@ public class TestDGet {
HSSFSheet sheet = wb.createSheet();
addRow(sheet, 0, "Tree", "Height", "Age", "Yield", "Profit", "Height");
addRow(sheet, 1, "=Apple", ">10", null, null, null, "<16");
addRow(sheet, 2, "=Pear", ">12");
addRow(sheet, 2, "Pear", ">12");
addRow(sheet, 3);
addRow(sheet, 4, "Tree", "Height", "Age", "Yield", "Profit");
addRow(sheet, 5, "Apple", 18, 20, 14, 105);
@ -60,7 +59,7 @@ public class TestDGet {
addRow(sheet, 7, "Cherry", 13, 14, 9, 105);
addRow(sheet, 8, "Apple", 14, null, 10, 75);
addRow(sheet, 9, "Pear", 9, 8, 8, 77);
addRow(sheet, 10, "Apple", 12, 11, 6, 45);
addRow(sheet, 10, "Apple", 8, 9, 6, 45);
return wb;
}
}