add npv tests

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1893754 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2021-09-30 13:24:18 +00:00
parent 2bf5cd505b
commit dc5451ea3e
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ class TestFinanceLib extends BaseTestNumeric {
addRow(sheet, 7, 14500); addRow(sheet, 7, 14500);
HSSFFormulaEvaluator fe = new HSSFFormulaEvaluator(wb); HSSFFormulaEvaluator fe = new HSSFFormulaEvaluator(wb);
HSSFCell cell = wb.getSheetAt(0).getRow(0).createCell(100); HSSFCell cell = wb.getSheetAt(0).getRow(0).createCell(100);
Utils.assertDouble(fe, cell, "NPV(A2, A4:A8)+A3", 1992.061554932363); Utils.assertDouble(fe, cell, "NPV(A2, A4:A8)+A3", 1922.061554932363);
Utils.assertDouble(fe, cell, "NPV(A2, A4:A8, -9000)+A3", -3749.4650870155747); Utils.assertDouble(fe, cell, "NPV(A2, A4:A8, -9000)+A3", -3749.4650870155747);
} }
} }