two different crosbi databases searching different tables
[Biblio-Z3950.git] / t / 3-GoogleBooks.t
1 #!/usr/bin/perl
2
3 use warnings;
4 use strict;
5
6 use Test::More tests => 14;
7
8 my $search = join(' ', @ARGV) || 'krleža';
9
10 use_ok 'GoogleBooks';
11
12 ok( my $o = GoogleBooks->new(), 'new' );
13
14 ok( my $hits = $o->search( $search ), "search: $search" );
15 like $hits, qr/^\d+$/, "hits: $hits";
16
17 foreach ( 1 .. 10 ) {
18
19         ok( my $marc = $o->next_marc, "next_marc $_" );
20         diag $marc;
21
22 }