Merge branch 'master' of github.com:dpavlin/Biblio-Z3950
[Biblio-Z3950.git] / t / 2-Aleph.t
index e14d48e..e88ec04 100755 (executable)
@@ -3,14 +3,18 @@
 use warnings;
 use strict;
 
-use Test::More tests => 4;
+use Test::More tests => 6;
 
 use_ok 'Aleph';
 
-ok( my $o = Aleph->new, 'new' );
+ok( my $o = Aleph->new('ZAG01'), 'new' );
 
 ok( my $hits = $o->search( 'WTI=linux' ), 'search' );
 diag "$hits results";
 
-ok( my $marc = $o->next_marc, 'next_marc' );
+foreach ( 1 .. 3 ) {
+
+ok( my $marc = $o->next_marc, "next_marc $_" );
 diag $marc;
+
+}