jvanzyl 00/11/01 11:34:51
Modified: test test.properties
Added: test/templates foreach-map.vm
test/templates/compare foreach-map.cmp
Log:
- added test for #foreach with a Map.
Revision Changes Path
1.7 +1 -0 jakarta-velocity/test/test.properties
Index: test.properties
===================================================================
RCS file: /home/cvs/jakarta-velocity/test/test.properties,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- test.properties 2000/11/01 19:20:47 1.6
+++ test.properties 2000/11/01 19:34:49 1.7
@@ -22,3 +22,4 @@
test.template.20 = diabolical
test.template.21 = pedantic
test.template.22 = subclass
+test.template.23 = foreach-map
1.1 jakarta-velocity/test/templates/foreach-map.vm
Index: foreach-map.vm
===================================================================
#**
@test foreach-map.vm
This template is used for Velocity regression testing.
If you alter this template make sure you change the
corresponding comparison file so that the regression
test doesn't fail incorrectly.
*#
#foreach ($element in $provider.Hashtable)
$element
#end
1.1 jakarta-velocity/test/templates/compare/foreach-map.cmp
Index: foreach-map.cmp
===================================================================
value2
value1
value0