/home/.cpan/build/Text-Template-1.61-0/t
NameSizeModeActions
author-pod-syntax.t3000644editdlrm
author-signature.t4310644editdlrm
basic.t53140755editdlrm
broken.t16110755editdlrm
delimiters.t28030755editdlrm
error.t8080755editdlrm
exported.t18610755editdlrm
hash.t26820755editdlrm
inline-comment.t3220755editdlrm
nested-tags.t5660755editdlrm
ofh.t6650755editdlrm
out.t10860755editdlrm
prepend.t19270755editdlrm
preprocess.t12850755editdlrm
rt29928.t5530755editdlrm
safe.t38320755editdlrm
safe2.t25680755editdlrm
safe3.t19350755editdlrm
strict.t12640755editdlrm
taint.t34310750editdlrm
template-encoding.t9440755editdlrm
warnings.t12820755editdlrm
Edit: /home/.cpan/build/Text-Template-1.61-0/t/out.t (1086B)
#!perl # # test apparatus for Text::Template module # still incomplete. # use strict; use warnings; use Test::More tests => 4; use_ok 'Text::Template' or exit 1; my $templateIN = q{ This line should have a 3: {1+2} This line should have several numbers: { $t = ''; foreach $n (1 .. 20) { $t .= $n . ' ' } $t } }; my $templateOUT = q{ This line should have a 3: { $OUT = 1+2 } This line should have several numbers: { foreach $n (1 .. 20) { $OUT .= $n . ' ' } } }; # Build templates from string my $template = Text::Template->new('type' => 'STRING', 'source' => $templateIN); isa_ok $template, 'Text::Template'; $templateOUT = Text::Template->new('type' => 'STRING', 'source' => $templateOUT); isa_ok $templateOUT, 'Text::Template'; # Fill in templates my $text = $template->fill_in(); my $textOUT = $templateOUT->fill_in(); # (1) They should be the same is $text, $textOUT; # Missing: Test this feature in Safe compartments; # it's a totally different code path. # Decision: Put that into safe.t, because that file should # be skipped when Safe.pm is unavailable. exit;