use strict;
use lib 'lib';
-use Test::More tests => 63;
+use Test::More tests => 84;
BEGIN {
use_ok( 'WebPAC::Test' );
diag "rec: ", dump($rec), "\n" if $debug;
}
+ok(my $db = $input->open(
+ path => "$abs_path/data/header_first.tsv",
+ header_first => 1,
+), "open header_first");
+ok(my $size = $input->size, "size");
+cmp_ok( $size, '==', 9, 'size one leas because of header_first' );
+
+foreach my $mfn ( 1 ... $size ) {
+ my $rec = $input->fetch;
+ ok($rec, "fetch $mfn");
+
+ ok( $rec->{'publication_title'}, 'has publication_title' );
+ diag "rec: ", dump($rec), "\n" if $debug;
+}
+