From d681c0e12cb18fbe4ef2ad4fbc49f74c81429c51 Mon Sep 17 00:00:00 2001 From: mike Date: Fri, 4 Nov 2005 16:59:55 +0000 Subject: [PATCH] Test for success of sortby() call. --- t/14-sorting.t | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/t/14-sorting.t b/t/14-sorting.t index 96beee1..dc2a044 100644 --- a/t/14-sorting.t +++ b/t/14-sorting.t @@ -1,4 +1,4 @@ -# $Id: 14-sorting.t,v 1.2 2005-11-04 16:34:16 mike Exp $ +# $Id: 14-sorting.t,v 1.3 2005-11-04 16:59:55 mike Exp $ # Before `make install' is performed this script should be runnable with # `make test'. After `make install' it should work as `perl 14-sorting.t' @@ -17,7 +17,7 @@ use strict; use warnings; -use Test::More tests => 26; +use Test::More tests => 27; use MARC::Record; BEGIN { use_ok('Net::Z3950::ZOOM') }; @@ -32,7 +32,8 @@ ok($errcode == 0, "connection to '$host'"); my $qstr = '@attr 1=4 map'; my $query = Net::Z3950::ZOOM::query_create(); Net::Z3950::ZOOM::query_prefix($query, $qstr); -Net::Z3950::ZOOM::query_sortby($query, "1=4i"); +Net::Z3950::ZOOM::resultset_sort($rs, "dummy", "1=4 >i"); ### There's no way to check for success, as this is a void function $previous = "z"; # Sorts after all legitimate titles -- 1.7.10.4