X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=t%2F22-query.t;h=5da0ceb147d2c939f334b1c425a7836ea71d5a48;hb=b6c8fc9592c03af668f15c2cc6ac21c9d999595d;hp=2a56cf8f4120febf54de8ddacbf64a6f67b7276c;hpb=692fb30bc0ab6d6e1536405ed7040ecd2b7c94ce;p=ZOOM-Perl-moved-to-github.git diff --git a/t/22-query.t b/t/22-query.t index 2a56cf8..5da0ceb 100644 --- a/t/22-query.t +++ b/t/22-query.t @@ -1,4 +1,4 @@ -# $Id: 22-query.t,v 1.8 2006-06-15 15:43:19 mike Exp $ +# $Id: 22-query.t,v 1.11 2006-11-02 17:48:26 mike Exp $ # Before `make install' is performed this script should be runnable with # `make test'. After `make install' it should work as `perl 22-query.t' @@ -51,11 +51,12 @@ ok(1, "destroyed complex query"); # no other uses of query objects -- but we need to establish a # connection for it to work on first. -my $host = "indexdata.com/gils"; +my $host = "z3950.indexdata.com/gils"; my $conn; -eval { $conn = new ZOOM::Connection($host, 0) }; +eval { $conn = new ZOOM::Connection($host, 0, + preferredRecordSyntax => "usmarc") }; ok(!$@, "connection to '$host'"); -$conn->option(preferredRecordSyntax => "usmarc"); + ok(1, "[no need to create empty query]"); eval { $q = new ZOOM::Query::PQF('@and @attr 1=4 utah @attr 1=62 epicenter') };