X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=t%2F24-sorting.t;h=e7f1b77074e9c97c0dc24278a3b88b714d78d86f;hb=eb9ae2e0469870dc0766688e83db55ed598cd20f;hp=268c8c6cc8d779d38ea1e99ee0c0b50cd8df241e;hpb=b41d5362e96e0170b678413ba1e06f44228ab305;p=ZOOM-Perl-moved-to-github.git diff --git a/t/24-sorting.t b/t/24-sorting.t index 268c8c6..e7f1b77 100644 --- a/t/24-sorting.t +++ b/t/24-sorting.t @@ -1,5 +1,3 @@ -# $Id: 24-sorting.t,v 1.4 2005-11-08 16:49:06 mike Exp $ - # Before `make install' is performed this script should be runnable with # `make test'. After `make install' it should work as `perl 24-sorting.t' @@ -10,7 +8,7 @@ use MARC::Record; BEGIN { use_ok('ZOOM') }; -my $host = "indexdata.com/gils"; +my $host = "z3950.indexdata.com/gils"; my $conn; eval { $conn = new ZOOM::Connection($host, 0) }; ok(!$@, "connection to '$host'"); @@ -38,9 +36,9 @@ foreach my $i (1 .. $n) { } # Now reverse the order of sorting -my $status = $rs->sort("dummy", "1=4>i"); +my $status = $rs->sort("yaz", "1=4>i"); ok($status < 0, "malformed sort criterion rejected"); -$status = $rs->sort("dummy", "1=4 >i"); +$status = $rs->sort("yaz", "1=4 >i"); ok($status == 0, "sort criterion accepted"); $previous = "z"; # Sorts after all legitimate titles