freemarker-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ddek...@apache.org
Subject [1/8] incubator-freemarker git commit: (Added an AST test case)
Date Sat, 19 Dec 2015 14:23:33 GMT
Repository: incubator-freemarker
Updated Branches:
  refs/heads/master a1356ed8d -> 3a35d4d2d


(Added an AST test case)


Project: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/commit/d1dafa54
Tree: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/tree/d1dafa54
Diff: http://git-wip-us.apache.org/repos/asf/incubator-freemarker/diff/d1dafa54

Branch: refs/heads/master
Commit: d1dafa5427b1caec463ca3f62cc89c416ae2a478
Parents: 204723f
Author: ddekany <ddekany@apache.org>
Authored: Thu Dec 17 21:06:18 2015 +0100
Committer: ddekany <ddekany@apache.org>
Committed: Thu Dec 17 21:06:18 2015 +0100

----------------------------------------------------------------------
 src/test/java/freemarker/core/ASTTest.java                       | 4 ++++
 src/test/resources/freemarker/core/ast-nestedignoredchildren.ast | 2 ++
 src/test/resources/freemarker/core/ast-nestedignoredchildren.ftl | 1 +
 3 files changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/d1dafa54/src/test/java/freemarker/core/ASTTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/freemarker/core/ASTTest.java b/src/test/java/freemarker/core/ASTTest.java
index a700334..1981ba6 100644
--- a/src/test/java/freemarker/core/ASTTest.java
+++ b/src/test/java/freemarker/core/ASTTest.java
@@ -63,6 +63,10 @@ public class ASTTest extends FileTestCase {
         testAST("ast-multipleignoredchildren");
     }
     
+    public void testNestedIgnoredChildren() throws Exception {
+        testAST("ast-nestedignoredchildren");
+    }
+
     private void testAST(String testName) throws FileNotFoundException, IOException {
         final String templateName = testName + ".ftl";
         assertExpectedFileEqualsString(

http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/d1dafa54/src/test/resources/freemarker/core/ast-nestedignoredchildren.ast
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/core/ast-nestedignoredchildren.ast b/src/test/resources/freemarker/core/ast-nestedignoredchildren.ast
new file mode 100644
index 0000000..5a43456
--- /dev/null
+++ b/src/test/resources/freemarker/core/ast-nestedignoredchildren.ast
@@ -0,0 +1,2 @@
+#outputformat  // f.c.OutputFormatBlock
+    - value: "HTML"  // f.c.StringLiteral

http://git-wip-us.apache.org/repos/asf/incubator-freemarker/blob/d1dafa54/src/test/resources/freemarker/core/ast-nestedignoredchildren.ftl
----------------------------------------------------------------------
diff --git a/src/test/resources/freemarker/core/ast-nestedignoredchildren.ftl b/src/test/resources/freemarker/core/ast-nestedignoredchildren.ftl
new file mode 100644
index 0000000..2f6043a
--- /dev/null
+++ b/src/test/resources/freemarker/core/ast-nestedignoredchildren.ftl
@@ -0,0 +1 @@
+<#outputFormat 'HTML'><#outputFormat 'HTML'><#outputFormat 'HTML'></#outputFormat></#outputFormat></#outputFormat>
\ No newline at end of file


Mime
View raw message