geirm       2003/12/23 06:07:24

  Modified:    test/templates arithmetic.vm
               test/templates/compare arithmetic.cmp
  Log:
  add string concat via '+'
  
  Revision  Changes    Path
  1.5       +18 -0     jakarta-velocity/test/templates/arithmetic.vm
  
  Index: arithmetic.vm
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/test/templates/arithmetic.vm,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- arithmetic.vm     29 Jan 2001 06:09:24 -0000      1.4
  +++ arithmetic.vm     23 Dec 2003 14:07:24 -0000      1.5
  @@ -36,3 +36,21 @@
   
   #set ($foo = $foo / 2)
   $foo
  +
  +## now lets try some string concatenation
  +
  +#set($stringy = "This is a very long string"
  + + " that we are breaking up into multiple"
  + + " lines for testing."
  +)
  +$stringy
  +
  +#set($stringy = "This is a string. The number 2 = " + 2)
  +$stringy
  +
  +#set($three = 3)
  +#set($stringy = "This is a string."
  ++ " The value = " 
  ++ $three
  +)
  +$stringy
  
  
  
  1.6       +7 -0      jakarta-velocity/test/templates/compare/arithmetic.cmp
  
  Index: arithmetic.cmp
  ===================================================================
  RCS file: /home/cvs/jakarta-velocity/test/templates/compare/arithmetic.cmp,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- arithmetic.cmp    8 Dec 2000 03:20:04 -0000       1.5
  +++ arithmetic.cmp    23 Dec 2003 14:07:24 -0000      1.6
  @@ -17,3 +17,10 @@
   10
   
   5
  +
  +
  +This is a very long string that we are breaking up into multiple lines for testing.
  +
  +This is a string. The number 2 = 2
  +
  +This is a string. The value = 3
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to