From: Dobrica Pavlinusic Date: Fri, 22 Oct 2010 23:23:20 +0000 (+0200) Subject: and test it X-Git-Url: http://git.rot13.org/?p=Biblio-Z3950.git;a=commitdiff_plain;h=01987190f655eb7476e076f775c44575d85b8ef0 and test it --- diff --git a/t/2-Aleph.t b/t/2-Aleph.t index 42e29bf..e14d48e 100755 --- a/t/2-Aleph.t +++ b/t/2-Aleph.t @@ -3,10 +3,14 @@ use warnings; use strict; -use Test::More tests => 3; +use Test::More tests => 4; use_ok 'Aleph'; -ok( my $search = Aleph->search( 'WTI=linux' ), 'search' ); +ok( my $o = Aleph->new, 'new' ); -ok( my $marc = Aleph->next_marc, 'next_marc' ); +ok( my $hits = $o->search( 'WTI=linux' ), 'search' ); +diag "$hits results"; + +ok( my $marc = $o->next_marc, 'next_marc' ); +diag $marc;