X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=t%2F2-input-isi.t;h=6e0e1c40d6c95bc4bb584e89f52f93c2982969b6;hb=fd1e07b1d85fed9081776e565af0ed580b8f33b9;hp=515614312f58170e0ac45a45a93ef09eadc6c403;hpb=71143ae3d3af14d788c8d18332c5f80d89e75dc5;p=webpac2 diff --git a/t/2-input-isi.t b/t/2-input-isi.t index 5156143..6e0e1c4 100755 --- a/t/2-input-isi.t +++ b/t/2-input-isi.t @@ -3,7 +3,7 @@ use strict; use blib; -use Test::More tests => 9; +use Test::More tests => 12; BEGIN { use_ok( 'WebPAC::Test' ); @@ -23,11 +23,13 @@ ok(my $db = $input->open( path => "$abs_path/data/recs.txt" ), "open"); ok(my $size = $input->size, "size"); +cmp_ok( $size, '==', 2, 'size ok' ); foreach my $mfn ( 1 ... $size ) { my $rec = $input->fetch; if ($mfn <= 10 || $mfn == 20) { ok($rec, "fetch $mfn"); + cmp_ok($rec->{'000'}->[0], '==', $mfn, 'has mfn'); } else { ok(! $rec, "empty $mfn"); }