/[webpac2]/trunk/t/2-input-xml.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/2-input-xml.t

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

revision 989 by dpavlin, Sun Nov 4 13:26:06 2007 UTC revision 998 by dpavlin, Sun Nov 4 16:47:03 2007 UTC
# Line 3  Line 3 
3  use strict;  use strict;
4  use blib;  use blib;
5    
6  use Test::More tests => 18;  use Test::More tests => 24;
7    
8  BEGIN {  BEGIN {
9  use_ok( 'WebPAC::Test' );  use_ok( 'WebPAC::Test' );
# Line 29  ok(my $size = $input->size, "size"); Line 29  ok(my $size = $input->size, "size");
29    
30  foreach my $mfn ( 1 ... $size ) {  foreach my $mfn ( 1 ... $size ) {
31          my $rec = $input->fetch;          my $rec = $input->fetch;
32          if ($mfn <= 10 || $mfn == 20) {          if ( $mfn >= 7 ) {
33                  ok($rec, "fetch $mfn");                  ok(! $rec, "error $mfn");
34          } else {          } else {
35                  ok(! $rec, "empty $mfn");                  ok($rec, "fetch $mfn");
36          }          }
37    
38          cmp_ok($input->pos, '==', $mfn, "pos $mfn");          cmp_ok($input->pos, '==', $mfn, "pos $mfn");

Legend:
Removed from v.989  
changed lines
  Added in v.998

  ViewVC Help
Powered by ViewVC 1.1.26