use fti_au for author search
[Biblio-Z3950.git] / t / 2-Aleph.t
index 42e29bf..e88ec04 100755 (executable)
@@ -3,10 +3,18 @@
 use warnings;
 use strict;
 
-use Test::More tests => 3;
+use Test::More tests => 6;
 
 use_ok 'Aleph';
 
-ok( my $search = Aleph->search( 'WTI=linux' ), 'search' );
+ok( my $o = Aleph->new('ZAG01'), 'new' );
 
-ok( my $marc = Aleph->next_marc, 'next_marc' );
+ok( my $hits = $o->search( 'WTI=linux' ), 'search' );
+diag "$hits results";
+
+foreach ( 1 .. 3 ) {
+
+ok( my $marc = $o->next_marc, "next_marc $_" );
+diag $marc;
+
+}