X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=t%2F2-input-xml.t;h=ccc44f70475fae4cb64314098242d96138ef666a;hb=929baf9a10a71df0f7bc392181cc801b79a49221;hp=2dae39f7373242eb2659919f5b7c9e63aa9b1b0d;hpb=3a3aa72ab224a032f6c4f7f4e1fe317e3abdb5b7;p=webpac2 diff --git a/t/2-input-xml.t b/t/2-input-xml.t index 2dae39f..ccc44f7 100755 --- a/t/2-input-xml.t +++ b/t/2-input-xml.t @@ -1,9 +1,9 @@ #!/usr/bin/perl -w use strict; -use blib; +use lib 'lib'; -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");