[Templates-cvs] cvs commit: Template2/t/vmethods hash.t text.t
cvs@template-toolkit.org
cvs@template-toolkit.org
cvs 06/05/30 15:53:53
Modified: t/vmethods hash.t text.t
Log:
Rebuild in preparation for 2.15b
Revision Changes Path
1.2 +7 -7 Template2/t/vmethods/hash.t
Index: hash.t
===================================================================
RCS file: /template-toolkit/Template2/t/vmethods/hash.t,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- hash.t 2006/02/02 11:35:07 1.1
+++ hash.t 2006/05/30 15:53:52 1.2
@@ -11,7 +11,7 @@
# This is free software; you can redistribute it and/or modify it
# under the same terms as Perl itself.
#
-# $Id: hash.t,v 1.1 2006/02/02 11:35:07 abw Exp $
+# $Id: hash.t,v 1.2 2006/05/30 15:53:52 abw Exp $
#
#========================================================================
@@ -28,14 +28,14 @@
uhash => { tobe => '2b', nottobe => undef },
};
-my $tt = Template->new();
+my $tt = Template->new() || die Template->error();
my $tc = $tt->context();
-$tc->define_vmethod(hash => dump => sub {
- my $hash = shift;
- return '{ '
- . join(', ', map { "$_ => '$hash->{$_}'" } sort keys %$hash)
- . ' }';
+$tc->define_vmethod(hash => dump => sub {
+ my $hash = shift;
+ return '{ '
+ . join(', ', map { "$_ => '$hash->{$_}'" } sort keys %$hash)
+ . ' }';
});
test_expect(\*DATA, undef, $params);
1.2 +1 -2 Template2/t/vmethods/text.t
Index: text.t
===================================================================
RCS file: /template-toolkit/Template2/t/vmethods/text.t,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- text.t 2006/02/02 11:35:07 1.1
+++ text.t 2006/05/30 15:53:52 1.2
@@ -11,7 +11,7 @@
# This is free software; you can redistribute it and/or modify it
# under the same terms as Perl itself.
#
-# $Id: text.t,v 1.1 2006/02/02 11:35:07 abw Exp $
+# $Id: text.t,v 1.2 2006/05/30 15:53:52 abw Exp $
#
#========================================================================
@@ -93,7 +93,6 @@
[% string.split.join('_') %]
-- expect --
The_cat_sat_on_the_mat
--- test --
-- test --
[% string.split(' ', 3).join('_') %]