support turkish translation of Aleph
[Biblio-Z3950.git] / t / 1-COBISS.t
index 9a8f1f7..bcca9aa 100755 (executable)
@@ -3,10 +3,18 @@
 use warnings;
 use strict;
 
-use Test::More tests => 3;
+use Test::More tests => 6;
 
 use_ok 'COBISS';
 
-ok( my $search = COBISS->search( 'TI=book' ), 'search' );
+ok( my $o = COBISS->new, 'new' );
 
-ok( my $marc = COBISS->fetch_marc, 'fetch_marc' );
+ok( my $hits = $o->search( 'TI=book' ), 'search' );
+diag "$hits results";
+
+foreach ( 1 .. 3 ) {
+
+ok( my $marc = $o->next_marc, "next_marc $_" );
+diag $marc;
+
+}