2 |
|
|
3 |
use strict; |
use strict; |
4 |
|
|
5 |
use Test::More tests => 23; |
use Test::More tests => 34; |
6 |
use Test::Exception; |
use Test::Exception; |
7 |
use Cwd qw/abs_path/; |
use Cwd qw/abs_path/; |
8 |
use File::Temp qw/tempdir/; |
use File::Temp qw/tempdir/; |
9 |
|
use Data::Dumper; |
10 |
use blib; |
use blib; |
11 |
|
|
12 |
BEGIN { |
BEGIN { |
67 |
|
|
68 |
ok(my @ds = $n->data_structure($row), "data_structure"); |
ok(my @ds = $n->data_structure($row), "data_structure"); |
69 |
|
|
70 |
use Data::Dumper; |
# diag Dumper(\@ds); |
|
print Dumper(\@ds); |
|
71 |
|
|
72 |
ok($out->apply( |
ok(my $html = $out->apply( |
73 |
template => 'html.tt', |
template => 'html.tt', |
74 |
data => @ds, |
data => \@ds, |
75 |
), "apply"); |
), "apply"); |
76 |
|
|
77 |
|
$html =~ s#\s*[\n\r]+\s*##gs; |
78 |
|
|
79 |
|
diag $html; |
80 |
|
|
81 |
}; |
}; |