poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r639254 - /poi/trunk/src/scratchpad/testcases/org/apache/poi/hssf/usermodel/TestFormulaEvaluatorBugs.java
Date Thu, 20 Mar 2008 11:43:14 GMT
Author: nick
Date: Thu Mar 20 04:43:14 2008
New Revision: 639254

URL: http://svn.apache.org/viewvc?rev=639254&view=rev
Log:
Make junit happy

Modified:
    poi/trunk/src/scratchpad/testcases/org/apache/poi/hssf/usermodel/TestFormulaEvaluatorBugs.java

Modified: poi/trunk/src/scratchpad/testcases/org/apache/poi/hssf/usermodel/TestFormulaEvaluatorBugs.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/testcases/org/apache/poi/hssf/usermodel/TestFormulaEvaluatorBugs.java?rev=639254&r1=639253&r2=639254&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/testcases/org/apache/poi/hssf/usermodel/TestFormulaEvaluatorBugs.java
(original)
+++ poi/trunk/src/scratchpad/testcases/org/apache/poi/hssf/usermodel/TestFormulaEvaluatorBugs.java
Thu Mar 20 04:43:14 2008
@@ -54,7 +54,7 @@
 		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 @@
 		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");



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org


Mime
View raw message