mirror of
https://github.com/apache/poi.git
synced 2026-02-27 20:40:08 +08:00
add npv tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1893750 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
37c63d928d
commit
2bf5cd505b
@ -153,8 +153,7 @@ class TestFinanceLib extends BaseTestNumeric {
|
||||
HSSFFormulaEvaluator fe = new HSSFFormulaEvaluator(wb);
|
||||
HSSFCell cell = wb.getSheetAt(0).getRow(0).createCell(100);
|
||||
Utils.assertDouble(fe, cell, "NPV(A2, A4:A8)+A3", 1992.061554932363);
|
||||
//TODO this scenario does not work
|
||||
//Utils.assertDouble(fe, cell, "NPV(A2, A4:A8, -9000)+A3", -3749.47);
|
||||
Utils.assertDouble(fe, cell, "NPV(A2, A4:A8, -9000)+A3", -3749.4650870155747);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user