geirm 00/12/19 06:53:57
Added: test/templates ifstatement.vm
test/templates/compare ifstatement.cmp
Log:
Test that just focuses on the #if() statement. We have it other places, but would
be nice to have it clean in one place.
Revision Changes Path
1.1 jakarta-velocity/test/templates/ifstatement.vm
Index: ifstatement.vm
===================================================================
#*
@test ifstatement.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.
*#
#set($foo = "woogie" )
start :
#if($foo)
right
#end
#if($bar)
wrong
#else
right
#end
#if($bar)
wrong
#elseif( $foo )
right
#end
#if( $bar )
wrong
#elseif( $floogie )
wrong
#elseif( $woppie )
wrong
#else
right
#end
done
1.1 jakarta-velocity/test/templates/compare/ifstatement.cmp
Index: ifstatement.cmp
===================================================================
start :
right
right
right
right
done