[Templates-cvs] cvs commit: Template2/t binop.t
cvs@template-toolkit.org
cvs@template-toolkit.org
Fri, 24 Dec 2004 14:51:04 +0000
cvs 04/12/24 14:51:04
Modified: t binop.t
Log:
* added test for lt, but disabled by default
Revision Changes Path
2.3 +13 -1 Template2/t/binop.t
Index: binop.t
===================================================================
RCS file: /template-toolkit/Template2/t/binop.t,v
retrieving revision 2.2
retrieving revision 2.3
diff -u -r2.2 -r2.3
--- binop.t 2000/09/12 15:25:22 2.2
+++ binop.t 2004/12/24 14:51:04 2.3
@@ -13,7 +13,7 @@
# This is free software; you can redistribute it and/or modify it
# under the same terms as Perl itself.
#
-# $Id: binop.t,v 2.2 2000/09/12 15:25:22 abw Exp $
+# $Id: binop.t,v 2.3 2004/12/24 14:51:04 abw Exp $
#
#========================================================================
@@ -26,6 +26,7 @@
$Template::Test::DEBUG = 0;
$Template::Parser::DEBUG = 0;
+
my $counter = 0;
my $params = {
'yes' => 1,
@@ -325,3 +326,14 @@
2 2
3 3
+
+-- stop --
+# this is for testing the lt operator which isn't enabled by default.
+-- test --
+[% IF 'one' lt 'two' -%]
+one is less than two
+[% ELSE -%]
+ERROR!
+[% END -%]
+-- expect --
+one is less than two