--- trunk/t/6-unit.t 2005/07/24 15:03:11 31 +++ trunk/t/6-unit.t 2005/11/19 23:48:24 70 @@ -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 { @@ -64,14 +65,17 @@ while (my $row = $isis->fetch) { - ok(my @ds = $n->data_structure($row), "data_structure"); + 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; + };