/[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 481 by dpavlin, Sun May 14 00:50:35 2006 UTC revision 482 by dpavlin, Sun May 14 09:33:56 2006 UTC
# Line 41  ok(my $lookup = new WebPAC::Lookup( Line 41  ok(my $lookup = new WebPAC::Lookup(
41  ok(my $isis = new WebPAC::Input(  ok(my $isis = new WebPAC::Input(
42          module => 'WebPAC::Input::ISIS',          module => 'WebPAC::Input::ISIS',
43          code_page => 'ISO-8859-2',      # application encoding          code_page => 'ISO-8859-2',      # application encoding
44          limit => 10,  #       limit => 10,
45  ), "new Input::ISIS");  ), "new Input::ISIS");
46    
47  ok(my $maxmfn = $isis->open(  ok(my $maxmfn = $isis->open(
# Line 78  ok(my $out = new WebPAC::Output::TT( Line 78  ok(my $out = new WebPAC::Output::TT(
78    
79  diag " lookup => ",Dumper($lookup->lookup_hash) if ($debug);  diag " lookup => ",Dumper($lookup->lookup_hash) if ($debug);
80    
81  while (my $row = $isis->fetch) {  foreach my $pos ( 0 ... $isis->size ) {
82    
83          diag " row => ",Dumper($row) if ($debug);          my $row = $isis->fetch || next;
84    
85            diag " row $pos => ",Dumper($row) if ($debug);
86          set_rec( $row );          set_rec( $row );
87    
88          ok(my $ds = $n->data_structure($row), "data_structure");          ok(my $ds = $n->data_structure($row), "data_structure");
89    
90          diag " ds => ",Dumper($ds) if ($debug);          diag " ds $pos => ",Dumper($ds) if ($debug);
91    
92          # TODO move somewhere          # TODO move somewhere
93          {          {
# Line 98  while (my $row = $isis->fetch) { Line 100  while (my $row = $isis->fetch) {
100                  ok(my $ds2 = get_ds(), "get_ds");                  ok(my $ds2 = get_ds(), "get_ds");
101                  is_deeply( $ds, $ds2, 'ds same for xml and sets');                  is_deeply( $ds, $ds2, 'ds same for xml and sets');
102    
103                  diag " ds2 => ",Dumper($ds2) if ($debug);                  diag " ds2 $pos => ",Dumper($ds2) if ($debug);
104          }          }
105    
106          ok(my $html = $out->apply(          ok(my $html = $out->apply(

Legend:
Removed from v.481  
changed lines
  Added in v.482

  ViewVC Help
Powered by ViewVC 1.1.26