poi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r1612926 - /poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFFormulaEvaluation.java
Date Wed, 23 Jul 2014 19:09:46 GMT
Author: nick
Date: Wed Jul 23 19:09:45 2014
New Revision: 1612926

URL: http://svn.apache.org/r1612926
Log:
Get further with the XSSF formula reference evaluation testing

Modified:
    poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFFormulaEvaluation.java

Modified: poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFFormulaEvaluation.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFFormulaEvaluation.java?rev=1612926&r1=1612925&r2=1612926&view=diff
==============================================================================
--- poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFFormulaEvaluation.java
(original)
+++ poi/trunk/src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFFormulaEvaluation.java
Wed Jul 23 19:09:45 2014
@@ -150,12 +150,19 @@ public final class TestXSSFFormulaEvalua
         // Try evaluating all of them, ensure we don't blow up
         for(Row r : s) {
             for (Cell c : r) {
-                // TODO Fix and enable
- //               evaluator.evaluate(c);
+                evaluator.evaluate(c);
             }
         }
         
         // Evaluate and check results
+        assertEquals("\"Hello!\"",  evaluator.evaluate(cXSLX_cell).formatAsString());
+        // TODO Fix XSSF reference evaluations to work
+//        assertEquals("\"Test A1\"", evaluator.evaluate(cXSLX_sNR).formatAsString());
+//        assertEquals("142.0",   evaluator.evaluate(cXSLX_gNR).formatAsString());
+
+        assertEquals("\"Hello!\"",  evaluator.evaluate(cXSL_cell).formatAsString());
+        assertEquals("\"Test A1\"", evaluator.evaluate(cXSL_sNR).formatAsString());
+        assertEquals("142.0",   evaluator.evaluate(cXSL_gNR).formatAsString());
     }
     
     /**



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


Mime
View raw message