--- trunk/t/2-input-isi.t 2007/11/28 22:52:18 1078 +++ trunk/t/2-input-isi.t 2007/11/28 22:52:59 1079 @@ -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 @@ 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"); }