mirror of https://github.com/apache/poi.git
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:
parent
2bf5cd505b
commit
dc5451ea3e
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue