6 use Test::More tests => 29;
8 my $search = join(' ', @ARGV) || 'krleža';
12 ok( my $o = DPLA->new(), 'new' );
14 ok( my $hits = $o->search( $o->usemap->{prefix_term}->( 'dpla.keyword' => $search ) ), "search: $search" );
15 like $hits, qr/^\d+$/, "hits: $hits";
17 foreach ( 1 .. 25 ) { # > 20 to hit next page
19 ok( my $marc = $o->next_marc, "next_marc $_" );