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 2002/03/23 14:54:44 UTC
cvs commit: jakarta-velocity/test/templates/compare logical.cmp
geirm 02/03/23 05:54:44
Modified: test/templates logical.vm
test/templates/compare logical.cmp
Log:
testcases for bug# 7387
Revision Changes Path
1.9 +18 -2 jakarta-velocity/test/templates/logical.vm
Index: logical.vm
===================================================================
RCS file: /home/cvs/jakarta-velocity/test/templates/logical.vm,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- logical.vm 30 May 2001 04:46:07 -0000 1.8
+++ logical.vm 23 Mar 2002 13:54:44 -0000 1.9
@@ -4,7 +4,7 @@
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
+corresponding comparison file so that the regression
test doesn't fail incorrectly.
*#
@@ -76,7 +76,7 @@
right
#end
-Logical AND :
+Logical AND :
#if( $t && $t)
right
@@ -282,3 +282,19 @@
#set($fofo = ( ($t || $f) && $t))
Should equal true : $fofo
+
+#set($x = !true)
+
+#if($x == false)
+right
+#else
+wrong
+#end
+
+#set($y = !$x)
+
+#if($y == true)
+right
+#else
+wrong
+#end
1.7 +7 -1 jakarta-velocity/test/templates/compare/logical.cmp
Index: logical.cmp
===================================================================
RCS file: /home/cvs/jakarta-velocity/test/templates/compare/logical.cmp,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- logical.cmp 30 May 2001 04:46:10 -0000 1.6
+++ logical.cmp 23 Mar 2002 13:54:44 -0000 1.7
@@ -29,7 +29,7 @@
right
-Logical AND :
+Logical AND :
right
@@ -109,3 +109,9 @@
Should equal true : true
+
+
+right
+
+
+right
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>