X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=t%2F2-input-xml.t;h=efba79ed4dc782acbc3fbc13d4195646b22e3705;hb=5f5d44c525baf7d887f809f4281f208da33ac846;hp=2dae39f7373242eb2659919f5b7c9e63aa9b1b0d;hpb=3a3aa72ab224a032f6c4f7f4e1fe317e3abdb5b7;p=webpac2 diff --git a/t/2-input-xml.t b/t/2-input-xml.t index 2dae39f..efba79e 100755 --- a/t/2-input-xml.t +++ b/t/2-input-xml.t @@ -3,7 +3,7 @@ use strict; use blib; -use Test::More tests => 18; +use Test::More tests => 24; BEGIN { use_ok( 'WebPAC::Test' ); @@ -29,10 +29,10 @@ ok(my $size = $input->size, "size"); foreach my $mfn ( 1 ... $size ) { my $rec = $input->fetch; - if ($mfn <= 10 || $mfn == 20) { - ok($rec, "fetch $mfn"); + if ( $mfn >= 7 ) { + ok(! $rec, "error $mfn"); } else { - ok(! $rec, "empty $mfn"); + ok($rec, "fetch $mfn"); } cmp_ok($input->pos, '==', $mfn, "pos $mfn");