You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by ge...@apache.org on 2001/02/07 22:54:51 UTC

cvs commit: jakarta-velocity/test/templates/compare foreach-array.cmp

geirm       01/02/07 13:54:51

  Modified:    test/templates foreach-array.vm
               test/templates/compare foreach-array.cmp
  Log:
  Added test for the [ $foo ] problem in ObjectArray.
  
  Revision  Changes    Path
  1.6       +16 -0     jakarta-velocity/test/templates/foreach-array.vm
  
  Index: foreach-array.vm
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/test/templates/foreach-array.vm,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- foreach-array.vm	2001/01/29 06:09:32	1.5
  +++ foreach-array.vm	2001/02/07 21:54:48	1.6
  @@ -38,3 +38,19 @@
   #foreach( $color in $colors )
   	$color
   #end
  +
  +#set($bar= 'bar')
  +#set($foo = [ 'a' ])
  +#set($foo2 = [ $bar ])
  +#set($foo2 = [$bar ])
  +#set($foo2 = [ $bar])
  +#set($foo2 = [ $bar] )
  +#foreach( $i in $foo )
  + \$foo : $i
  +#end
  +
  +#foreach($i in $foo2)
  + \$foo2 : $i
  +#end
  +
  +
  
  
  
  1.5       +6 -0      jakarta-velocity/test/templates/compare/foreach-array.cmp
  
  Index: foreach-array.cmp
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/test/templates/compare/foreach-array.cmp,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- foreach-array.cmp	2000/11/06 00:08:49	1.4
  +++ foreach-array.cmp	2001/02/07 21:54:50	1.5
  @@ -23,3 +23,9 @@
   	red
   	blue
   	green
  +
  + $foo : a
  +
  + $foo2 : bar
  +
  +