added save_content for debugging
[Biblio-Z3950.git] / t / 1-COBISS.t
index 782c6a0..bcca9aa 100755 (executable)
@@ -3,9 +3,18 @@
 use warnings;
 use strict;
 
-use Test::More tests => 2;
+use Test::More tests => 6;
 
 use_ok 'COBISS';
 
-ok( my $results = COBISS->search() );
+ok( my $o = COBISS->new, 'new' );
 
+ok( my $hits = $o->search( 'TI=book' ), 'search' );
+diag "$hits results";
+
+foreach ( 1 .. 3 ) {
+
+ok( my $marc = $o->next_marc, "next_marc $_" );
+diag $marc;
+
+}