From: PJ Fanning Date: Thu, 30 Sep 2021 09:44:37 +0000 (+0000) Subject: add npv tests X-Git-Tag: REL_5_2_0~482 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2bf5cd505b620baebb85a41f934cb90c60ed5fd8;p=poi.git add npv tests git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1893750 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/poi/src/test/java/org/apache/poi/ss/formula/functions/TestFinanceLib.java b/poi/src/test/java/org/apache/poi/ss/formula/functions/TestFinanceLib.java index 565e9ff0e8..33bc49d9df 100644 --- a/poi/src/test/java/org/apache/poi/ss/formula/functions/TestFinanceLib.java +++ b/poi/src/test/java/org/apache/poi/ss/formula/functions/TestFinanceLib.java @@ -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); } }