/[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 479 by dpavlin, Sat May 13 13:39:09 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 26  $abs_path =~ s#/[^/]*$#/#; Line 26  $abs_path =~ s#/[^/]*$#/#;
26  diag "abs_path: $abs_path" if ($debug);  diag "abs_path: $abs_path" if ($debug);
27    
28  my $isis_file = "$abs_path../t/winisis/BIBL";  my $isis_file = "$abs_path../t/winisis/BIBL";
29  $isis_file = '/data/hidra/THS/THS';  #$isis_file = '/data/hidra/THS/THS';
30    $isis_file = '/data/isis_data/ffkk/';
31    
32  diag "isis_file: $isis_file" if ($debug);  diag "isis_file: $isis_file" if ($debug);
33    
# Line 77  ok(my $out = new WebPAC::Output::TT( Line 78  ok(my $out = new WebPAC::Output::TT(
78    
79  while (my $row = $isis->fetch) {  while (my $row = $isis->fetch) {
80    
81            diag " row => ",Dumper($row) if ($debug);
82            set_rec( $row );
83    
84          ok(my $ds = $n->data_structure($row), "data_structure");          ok(my $ds = $n->data_structure($row), "data_structure");
85    
86          diag " ds => ",Dumper($ds) if ($debug);          diag " ds => ",Dumper($ds) if ($debug);
# Line 85  while (my $row = $isis->fetch) { Line 89  while (my $row = $isis->fetch) {
89          {          {
90                  no strict 'subs';                  no strict 'subs';
91                  use WebPAC::Normalize::Set;                  use WebPAC::Normalize::Set;
92                  diag " row => ",Dumper($row) if ($debug);                  diag " lookup => ",Dumper($lookup->lookup_hash) if ($debug);
93                  set_rec( $row );                  set_lookup( $lookup->lookup_hash );
                 #diag " lookup => ",Dumper($lookup) if ($debug);  
                 #set_lookup( $lookup );  
94                  clean_ds();                  clean_ds();
95                  eval "$norm_pl";                  eval "$norm_pl";
96                  ok(! $@, $@ ? "error: $@" : "no error");                  ok(! $@, $@ ? "error: $@" : "no error");

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

  ViewVC Help
Powered by ViewVC 1.1.26