-# $Id: ZOOM.pm,v 1.22 2005-12-19 17:39:47 mike Exp $
+# $Id: ZOOM.pm,v 1.23 2005-12-19 17:46:09 mike Exp $
use strict;
use warnings;
return _new ZOOM::ResultSet($this, $pqf, $_rs);
}
-sub scan {
+sub scan_pqf {
my $this = shift();
my($startterm) = @_;
return _new ZOOM::ScanSet($this, $startterm, $_ss);
}
-sub scan1 {
+sub scan {
my $this = shift();
my($query) = @_;
-# $Id: 25-scan.t,v 1.3 2005-12-19 17:40:04 mike Exp $
+# $Id: 25-scan.t,v 1.4 2005-12-19 17:48:47 mike Exp $
# Before `make install' is performed this script should be runnable with
# `make test'. After `make install' it should work as `perl 25-scan.t'
eval {
if ($use_query_for_scan) {
my $q = new ZOOM::Query::PQF($startterm);
- $ss = $conn->scan1($q);
+ $ss = $conn->scan($q);
} else {
- $ss = $conn->scan($startterm);
+ $ss = $conn->scan_pqf($startterm);
}
};
ok(!$@, "scan for '$startterm'");
+ die $@ if $@;
$use_query_for_scan = !$use_query_for_scan;
my $n = $ss->size();