jvanzyl 01/03/23 09:37:58
Modified: test/texen service.props
test/texen/templates Control.vm
Added: test/texen/compare Test.txt
Log:
- adding test for the automatic boolean mapping added to texen.
Revision Changes Path
1.2 +11 -0 jakarta-velocity/test/texen/service.props
Index: service.props
===================================================================
RCS file: /home/cvs/jakarta-velocity/test/texen/service.props,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- service.props 2001/03/19 06:38:56 1.1
+++ service.props 2001/03/23 17:37:51 1.2
@@ -8,3 +8,14 @@
## as $license.
license.file.contents = ../test/texen/license.txt
+
+# Test some properties that have be give some boolean
+# values.
+
+one = true
+two = yes
+three = on
+
+four = false
+five = no
+six = off
1.1 jakarta-velocity/test/texen/compare/Test.txt
Index: Test.txt
===================================================================
# These should all evaluate to true
true
true
true
# These should all evaluate to false
false
false
false
1.2 +3 -0 jakarta-velocity/test/texen/templates/Control.vm
Index: Control.vm
===================================================================
RCS file: /home/cvs/jakarta-velocity/test/texen/templates/Control.vm,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- Control.vm 2001/03/19 06:38:56 1.1
+++ Control.vm 2001/03/23 17:37:57 1.2
@@ -6,3 +6,6 @@
#set ( $sourceFile = "Turbine${baseName}.java" )
$generator.parse("ServiceStaticHelper.vm",$sourceFile)
+
+#set ( $sourceFile = "Test.txt" )
+$generator.parse("Test.vm",$sourceFile)