Author: fanningpj
Date: Sat Apr  9 11:37:36 2022
New Revision: 1899679

URL: http://svn.apache.org/viewvc?rev=1899679&view=rev
Log:
increase tolerance on rate test due to failures

Modified:
    
poi/trunk/poi/src/test/java/org/apache/poi/ss/formula/eval/TestFormulasFromSpreadsheet.java

Modified: 
poi/trunk/poi/src/test/java/org/apache/poi/ss/formula/eval/TestFormulasFromSpreadsheet.java
URL: 
http://svn.apache.org/viewvc/poi/trunk/poi/src/test/java/org/apache/poi/ss/formula/eval/TestFormulasFromSpreadsheet.java?rev=1899679&r1=1899678&r2=1899679&view=diff
==============================================================================
--- 
poi/trunk/poi/src/test/java/org/apache/poi/ss/formula/eval/TestFormulasFromSpreadsheet.java
 (original)
+++ 
poi/trunk/poi/src/test/java/org/apache/poi/ss/formula/eval/TestFormulasFromSpreadsheet.java
 Sat Apr  9 11:37:36 2022
@@ -198,7 +198,9 @@ public final class TestFormulasFromSprea
                    fail("Cannot expect formula as result of formula 
evaluation: " + msg);
                case NUMERIC:
                    assertEquals(CellType.NUMERIC, actValue.getCellType(), msg);
-                   TestMathX.assertDouble(msg, expValue.getNumericCellValue(), 
actValue.getNumberValue(), TestMathX.POS_ZERO, TestMathX.DIFF_TOLERANCE_FACTOR);
+                   final double tolerance = 
targetFunctionName.equalsIgnoreCase("RATE")
+                           ? 0.000001 : TestMathX.DIFF_TOLERANCE_FACTOR;
+                   TestMathX.assertDouble(msg, expValue.getNumericCellValue(), 
actValue.getNumberValue(), TestMathX.POS_ZERO, tolerance);
                    break;
                case STRING:
                    assertEquals(CellType.STRING, actValue.getCellType(), msg);



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to