geirm       00/11/21 18:19:20

  Modified:    test/templates velocimacro.vm
               test/templates/compare velocimacro.cmp
  Log:
  Added test for 0 arg VMs as well as a long complicated reference arg.
  
  Revision  Changes    Path
  1.2       +15 -0     jakarta-velocity/test/templates/velocimacro.vm
  
  Index: velocimacro.vm
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/test/templates/velocimacro.vm,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- velocimacro.vm    2000/11/19 23:29:45     1.1
  +++ velocimacro.vm    2000/11/22 02:19:20     1.2
  @@ -47,5 +47,20 @@
   >#quietnull($foo)<
   >#quietnull($nada)<
   
  +We should be able to use argless VMs (and directives....)
  +#macro( noargs )
  +Hello! I have no args!
  +#end
  +
  +#noargs()
  +
  +
  +And there was a bug where I wasn't getting the params right for the use-instance :
  +
  +#macro( showarg $i )
  +Arg :>$i<
  +#end
  +
  +#showarg( 
$jdom.getRootElement().getChild("properties").getChild("author").getTextTrim() )
   
   - Another fine Velocity Production -
  
  
  
  1.2       +9 -0      jakarta-velocity/test/templates/compare/velocimacro.cmp
  
  Index: velocimacro.cmp
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/test/templates/compare/velocimacro.cmp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- velocimacro.cmp   2000/11/19 23:32:26     1.1
  +++ velocimacro.cmp   2000/11/22 02:19:20     1.2
  @@ -28,5 +28,14 @@
   >hello!<
   ><
   
  +We should be able to use argless VMs (and directives....)
  +
  +Hello! I have no args!
  +
  +
  +And there was a bug where I wasn't getting the params right for the use-instance :
  +
  +
  +Arg 
:>$jdom.getRootElement().getChild("properties").getChild("author").getTextTrim()<
   
   - Another fine Velocity Production -
  
  
  

Reply via email to