make saerch query param to test script
[Biblio-Z3950.git] / t / 3-GoogleBooks.t
index 62156d0..0266d08 100755 (executable)
@@ -5,11 +5,13 @@ use strict;
 
 use Test::More tests => 14;
 
+my $search = join(' ', @ARGV) || 'croatia';
+
 use_ok 'GoogleBooks';
 
 ok( my $o = GoogleBooks->new(), 'new' );
 
-ok( my $hits = $o->search( 'croatia' ), 'search' );
+ok( my $hits = $o->search( $search ), "search: $search" );
 like $hits, qr/^\d+$/, "hits: $hits";
 
 foreach ( 1 .. 10 ) {