]> source.dussan.org Git - poi.git/commitdiff
Get further with the XSSF formula reference evaluation testing
authorNick Burch <nick@apache.org>
Wed, 23 Jul 2014 19:09:45 +0000 (19:09 +0000)
committerNick Burch <nick@apache.org>
Wed, 23 Jul 2014 19:09:45 +0000 (19:09 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1612926 13f79535-47bb-0310-9956-ffa450edef68

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

index 1c1de721b639fb38832c1454165eb942a1234c1e..3857b0d52cfffa645d2848e41aab34c7af65b53b 100644 (file)
@@ -150,12 +150,19 @@ public final class TestXSSFFormulaEvaluation extends BaseTestFormulaEvaluator {
         // 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());
     }
     
     /**