From 0b4a969984dd6c1904b096563baa7b5722f74022 Mon Sep 17 00:00:00 2001 From: Nick Burch Date: Thu, 20 Mar 2008 11:43:14 +0000 Subject: [PATCH] Make junit happy git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@639254 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/poi/hssf/usermodel/TestFormulaEvaluatorBugs.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scratchpad/testcases/org/apache/poi/hssf/usermodel/TestFormulaEvaluatorBugs.java b/src/scratchpad/testcases/org/apache/poi/hssf/usermodel/TestFormulaEvaluatorBugs.java index bcb7e3737d..db4be7f410 100644 --- a/src/scratchpad/testcases/org/apache/poi/hssf/usermodel/TestFormulaEvaluatorBugs.java +++ b/src/scratchpad/testcases/org/apache/poi/hssf/usermodel/TestFormulaEvaluatorBugs.java @@ -54,7 +54,7 @@ public final class TestFormulaEvaluatorBugs extends TestCase { row.getCell((short)2).setCellValue(25); HSSFFormulaEvaluator.evaluateAllFormulaCells(wb); - assertEquals(4.2*25, row.getCell((short)3).getNumericCellValue()); + assertEquals(4.2*25, row.getCell((short)3).getNumericCellValue(), 0.0001); // Save File existing = new File(tmpDirName,"44636-existing.xls"); @@ -76,7 +76,7 @@ public final class TestFormulaEvaluatorBugs extends TestCase { row.createCell((short)0).setCellFormula("SUM(A1:B1)"); HSSFFormulaEvaluator.evaluateAllFormulaCells(wb); - assertEquals(5.4, row.getCell((short)0).getNumericCellValue()); + assertEquals(5.4, row.getCell((short)0).getNumericCellValue(), 0.0001); // Save File scratch = new File(tmpDirName,"44636-scratch.xls"); -- 2.39.5