use warnings;
use strict;
-use Test::More tests => 5;
+use Test::More tests => 7;
my $search = join(' ', @ARGV) || 'denis bratko';
ok( my $o = CROSBI->new(), 'new' );
+foreach my $database ( qw( CROSBI-CASOPIS CROSBI-PREPRINT ) ) {
+ diag $o->{database} = $database;
+
ok( my $hits = $o->search( $search ), "search: $search" );
like $hits, qr/^\d+$/, "hits: $hits";
diag $marc;
}
+
+} # database