File: tt_and_overload.t

package info (click to toggle)
libdata-formvalidator-perl 4.66-1%2Bsqueeze1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 588 kB
  • ctags: 127
  • sloc: perl: 2,756; makefile: 2
file content (15 lines) | stat: -rw-r--r-- 381 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use Test::More;
use Data::FormValidator;

eval { require  Template; require Template::Stash; };
plan skip_all => 'Template Toolkit required' if $@;
plan tests => 1;

my $results = Data::FormValidator->check( {}, {required => 1} );

my $tt = Template->new( STASH => Template::Stash->new );

$tt->process( \'[% form.missing %]', {form => $results}, \my $out );

ok(not $tt->error);