5 use Test::More tests => 6;
8 use File::Temp qw/tempdir/;
13 use_ok( 'WebPAC::Search::Estraier' );
14 use_ok( 'Log::Log4perl' );
17 Log::Log4perl::init('./conf/log.conf');
18 ok(my $log = Log::Log4perl->get_logger('WebPAC.test'), "get_logger");
20 ok(my $est = new WebPAC::Search::Estraier(
21 url => 'http://localhost:1978/node/webpac2',
24 encoding => 'iso-8859-2',
31 ok(my @res = $est->search(
34 attr => [ qw/PersonalName TitleProper/ ],
35 ), "search $query, max: $max");
37 cmp_ok(($#res + 1), '==', $max, "$max hits");