[Jifty-commit] r6065 - Template-Declare/t
Jifty commits
jifty-commit at lists.jifty.org
Wed Dec 3 04:29:58 EST 2008
Author: ruz
Date: Wed Dec 3 04:29:57 2008
New Revision: 6065
Modified:
Template-Declare/t/arg-passing.t
Log:
* add more tests for arg passing
** functional show called outside of TD must behave the same as TD->show
Modified: Template-Declare/t/arg-passing.t
==============================================================================
--- Template-Declare/t/arg-passing.t (original)
+++ Template-Declare/t/arg-passing.t Wed Dec 3 04:29:57 2008
@@ -31,20 +31,24 @@
package main;
use strict;
use warnings;
-use Test::More tests => 5;
+use Test::More tests => 9;
use Template::Declare;
+use Template::Declare::Tags;
Template::Declare->init(roots => ['MyApp::Templates']);
my $out = Template::Declare->show('inner', 'inside');
like($out, qr/inner: inside/);
+is(show('inner', 'inside'), $out, 'show and TD->show are the same');
$out = Template::Declare->show('outer', 'xyzzy');
like($out, qr/outer: xyzzy/);
like($out, qr/inner: XYZZY/);
+is(show('outer', 'xyzzy'), $out, 'show and TD->show are the same');
$out = Template::Declare->show('add', '32', '56');
is($out, '32 + 56');
+is(show('add', '32', '56'), $out, 'show and TD->show are the same');
$out = Template::Declare->show('host');
is($out, '3 + 7');
-
+is(show('host'), $out, 'show and TD->show are the same');
More information about the Jifty-commit
mailing list