--- trunk/t/6-unit.t 2005/07/24 15:07:56 32 +++ trunk/t/6-unit.t 2005/07/24 15:35:46 33 @@ -2,10 +2,11 @@ use strict; -use Test::More tests => 23; +use Test::More tests => 34; use Test::Exception; use Cwd qw/abs_path/; use File::Temp qw/tempdir/; +use Data::Dumper; use blib; BEGIN { @@ -66,12 +67,15 @@ ok(my @ds = $n->data_structure($row), "data_structure"); -use Data::Dumper; -print Dumper(\@ds); +# diag Dumper(\@ds); - ok($out->apply( + ok(my $html = $out->apply( template => 'html.tt', - data => @ds, + data => \@ds, ), "apply"); + $html =~ s#\s*[\n\r]+\s*##gs; + + diag $html; + };