diff options
author | PJ Fanning <fanningpj@apache.org> | 2022-01-15 00:35:18 +0000 |
---|---|---|
committer | PJ Fanning <fanningpj@apache.org> | 2022-01-15 00:35:18 +0000 |
commit | 66e16a89578254f7a20d350ed7b58bcaa4cc5268 (patch) | |
tree | 3a41499c1dc50f4ea68a557b8c9d8c80900b5850 /poi-excelant | |
parent | 50db37510df7e1779edf78010db4011c1daec868 (diff) | |
download | poi-66e16a89578254f7a20d350ed7b58bcaa4cc5268.tar.gz poi-66e16a89578254f7a20d350ed7b58bcaa4cc5268.zip |
[bug-65792] change way multiply and divide are calculated due to rounding issues
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1897066 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi-excelant')
-rw-r--r-- | poi-excelant/src/test/java/org/apache/poi/ss/excelant/TestBuildFile.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/poi-excelant/src/test/java/org/apache/poi/ss/excelant/TestBuildFile.java b/poi-excelant/src/test/java/org/apache/poi/ss/excelant/TestBuildFile.java index 9e580bd48e..8e4d783348 100644 --- a/poi-excelant/src/test/java/org/apache/poi/ss/excelant/TestBuildFile.java +++ b/poi-excelant/src/test/java/org/apache/poi/ss/excelant/TestBuildFile.java @@ -256,18 +256,18 @@ public class TestBuildFile { assertLogContaining("Using input file: " + TestBuildFile.getDataDir() + "/spreadsheet/excelant.xls"); assertLogContaining("Succeeded when evaluating 'MortgageCalculator'!$B$4. " + - "It evaluated to 2285.5761494145563 when the value of 2285.576149 with precision of 1.0E-4"); + "It evaluated to 2285.5761494145568 when the value of 2285.576149 with precision of 1.0E-4"); assertLogContaining("Succeeded when evaluating 'MortgageCalculator'!$B$4. " + - "It evaluated to 2285.5761494145563 when the value of 2285.576149 with precision of 1.0E-5"); + "It evaluated to 2285.5761494145568 when the value of 2285.576149 with precision of 1.0E-5"); assertLogContaining("Failed to evaluate cell 'MortgageCalculator'!$B$4. " + - "It evaluated to 2285.5761494145563 when the value of 2285.576149 with precision of 1.0E-10 was expected."); + "It evaluated to 2285.5761494145568 when the value of 2285.576149 with precision of 1.0E-10 was expected."); assertLogContaining("2/3 tests passed"); } @Test void testPrecisionFail() { expectBuildException("test-precision-fails", "precision not matched", - "\tFailed to evaluate cell 'MortgageCalculator'!$B$4. It evaluated to 2285.5761494145563 " + + "\tFailed to evaluate cell 'MortgageCalculator'!$B$4. It evaluated to 2285.5761494145568 " + "when the value of 2285.576149 with precision of 1.0E-10 was expected."); } |