/[webpac2]/trunk/t/6-unit.t
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/t/6-unit.t

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 470 by dpavlin, Sat May 13 12:07:27 2006 UTC revision 474 by dpavlin, Sat May 13 12:08:05 2006 UTC
# Line 10  use File::Slurp; Line 10  use File::Slurp;
10  use Data::Dumper;  use Data::Dumper;
11  use blib;  use blib;
12    
13  my $debug = 1;  my $debug = shift @ARGV;
14    
15  BEGIN {  BEGIN {
16  use_ok( 'WebPAC::Lookup' );  use_ok( 'WebPAC::Lookup' );
# Line 77  ok(my $out = new WebPAC::Output::TT( Line 77  ok(my $out = new WebPAC::Output::TT(
77    
78  while (my $row = $isis->fetch) {  while (my $row = $isis->fetch) {
79    
80            diag " row => ",Dumper($row) if ($debug);
81            set_rec( $row );
82    
83          ok(my $ds = $n->data_structure($row), "data_structure");          ok(my $ds = $n->data_structure($row), "data_structure");
84    
85          diag " ds => ",Dumper($ds) if ($debug);          diag " ds => ",Dumper($ds) if ($debug);
# Line 85  while (my $row = $isis->fetch) { Line 88  while (my $row = $isis->fetch) {
88          {          {
89                  no strict 'subs';                  no strict 'subs';
90                  use WebPAC::Normalize::Set;                  use WebPAC::Normalize::Set;
91                  diag " row => ",Dumper($row) if ($debug);                  diag " lookup => ",Dumper($lookup) if ($debug);
92                  set_rec( $row );                  set_lookup( $lookup->lookup_hash );
                 #diag " lookup => ",Dumper($lookup) if ($debug);  
                 #set_lookup( $lookup );  
93                  clean_ds();                  clean_ds();
94                  eval "$norm_pl";                  eval "$norm_pl";
95                  ok(! $@, $@ ? "error: $@" : "no error");                  ok(! $@, $@ ? "error: $@" : "no error");

Legend:
Removed from v.470  
changed lines
  Added in v.474

  ViewVC Help
Powered by ViewVC 1.1.26