aboutsummaryrefslogtreecommitdiff
path: root/velocity-engine-core/src/test/resources
diff options
context:
space:
mode:
authorClaude Brisson <cbrisson@apache.org>2016-09-12 13:05:15 +0000
committerClaude Brisson <cbrisson@apache.org>2016-09-12 13:05:15 +0000
commitb7d834aa85d2f77580ac07c851b21c312a43b4cd (patch)
treef44a5340e6d585463bed7a2e2fcabb70d2706aa5 /velocity-engine-core/src/test/resources
parent855ea3008e00ec5fe75033f3b9a555af0de6d36a (diff)
downloadapache-velocity-engine-b7d834aa85d2f77580ac07c851b21c312a43b4cd.tar.gz
add tests for VELOCITY-783 parsing problem
git-svn-id: https://svn.apache.org/repos/asf/velocity/engine/trunk@1760357 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'velocity-engine-core/src/test/resources')
-rw-r--r--velocity-engine-core/src/test/resources/templates/comment.vm12
-rw-r--r--velocity-engine-core/src/test/resources/templates/compare/comment.cmp5
2 files changed, 17 insertions, 0 deletions
diff --git a/velocity-engine-core/src/test/resources/templates/comment.vm b/velocity-engine-core/src/test/resources/templates/comment.vm
index 0ba979c2..4b591150 100644
--- a/velocity-engine-core/src/test/resources/templates/comment.vm
+++ b/velocity-engine-core/src/test/resources/templates/comment.vm
@@ -64,3 +64,15 @@ Test of multiline/singleline combo
with some closing text
##test
+
+
+Test for Velocity-783:
+
+#set( $map = { 'foo' : 'bar' })
+$map.size()## ok
+$map.foo## not ok before bugfix
+$map.foo ## ok with a space behind
+${map.foo}## ok with curly braces
+$map## ok
+schmoo## ok
+
diff --git a/velocity-engine-core/src/test/resources/templates/compare/comment.cmp b/velocity-engine-core/src/test/resources/templates/compare/comment.cmp
index a603b781..bd04890f 100644
--- a/velocity-engine-core/src/test/resources/templates/compare/comment.cmp
+++ b/velocity-engine-core/src/test/resources/templates/compare/comment.cmp
@@ -28,3 +28,8 @@ Test of multiline/singleline combo
with some closing text
+
+
+Test for Velocity-783:
+
+1barbar bar{foo=bar}schmoo