commit | 90a486788c4f12623cdc31e5c04a22d62cf69bdc | [log] [tgz] |
---|---|---|
author | Geir Magnusson Jr <geirm@apache.org> | Thu Dec 21 05:52:16 2000 +0000 |
committer | Geir Magnusson Jr <geirm@apache.org> | Thu Dec 21 05:52:16 2000 +0000 |
tree | 5ff49cc62c17cce46972e4c809b1364be60b2c4e | |
parent | 730f4f5dadcad3173eae86e2c70f06de5242868e [diff] |
Added tests for the single-quoted, non-interpolated string lits. PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/jakarta/velocity/trunk@74037 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/test/templates/compare/interpolation.cmp b/test/templates/compare/interpolation.cmp index 6b4fdb5..8fc2b59 100644 --- a/test/templates/compare/interpolation.cmp +++ b/test/templates/compare/interpolation.cmp
@@ -29,3 +29,12 @@ False + +Now, non interpolated stringlits : + + + False +$code +$!$\!code + +-- end --
diff --git a/test/templates/interpolation.vm b/test/templates/interpolation.vm index 254b098..5a4d9a9 100644 --- a/test/templates/interpolation.vm +++ b/test/templates/interpolation.vm
@@ -51,3 +51,15 @@ #set $code = "#if(false) True #else False #end" $code + +Now, non interpolated stringlits : + +#set($a = "$code") +#set($b = '$code') +#set($c = '$!$\!code') + +$a +$b +$c + +-- end --