projects
/
webpac2
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71143ae
)
test mfn
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Wed, 28 Nov 2007 22:52:59 +0000
(22:52 +0000)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Wed, 28 Nov 2007 22:52:59 +0000
(22:52 +0000)
git-svn-id: svn+ssh://mjesec/home/dpavlin/svn/webpac2/trunk@1079
07558da8
-63fa-0310-ba24-
9fe276d99e06
t/2-input-isi.t
patch
|
blob
|
history
diff --git
a/t/2-input-isi.t
b/t/2-input-isi.t
index
5156143
..
6e0e1c4
100755
(executable)
--- 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");
}