X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=t%2F22-query.t;h=4ffbd632749b96275a359b48aec57c9049fcdbdb;hb=63556845a60bdb2765a466ada5913cb1c56ad59d;hp=11a3622b09da899a6739f86a94ef06972e9d06d7;hpb=6c5da63e648176a2460785d1a3eb78706363e1e1;p=ZOOM-Perl-moved-to-github.git diff --git a/t/22-query.t b/t/22-query.t index 11a3622..4ffbd63 100644 --- a/t/22-query.t +++ b/t/22-query.t @@ -1,5 +1,3 @@ -# $Id: 22-query.t,v 1.7 2006-06-13 16:14:58 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 +49,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') }; @@ -87,7 +86,7 @@ ok(1, "[no need to create empty query]"); $conn->option(cqlfile => "samples/cql/pqf.properties"); eval { $q = new ZOOM::Query::CQL2RPN('title=utah and description=epicenter', $conn) }; -ok(!$@, "created CQL2RPN query: \@=$@"); +ok(!$@, "created CQL2RPN query"); check_record($conn, $q); $q->destroy(); @@ -102,7 +101,7 @@ ok($@ && $@->isa("ZOOM::Exception") && ok(1, "[no need to create empty query]"); $conn->option(cclfile => "samples/ccl/default.bib"); eval { $q = new ZOOM::Query::CCL2RPN('ti=utah and ab=epicenter', $conn) }; -ok(!$@, "created CCL2RPN query: \@=$@"); +ok(!$@, "created CCL2RPN query"); check_record($conn, $q); $q->destroy();