X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;ds=sidebyside;f=t%2F24-sorting.t;h=f6e0fe44aac69443dbae7c1cf642dafd4119b8cc;hb=4c3fdc54c3f333c976bf4eec94c69de75f8d8d4c;hp=5c49a7be5949fb936b4f590b644d0b90dfa33e3c;hpb=24e8535c8420bfaaa519caf2e7fa3b95c6258faf;p=ZOOM-Perl-moved-to-github.git diff --git a/t/24-sorting.t b/t/24-sorting.t index 5c49a7b..f6e0fe4 100644 --- a/t/24-sorting.t +++ b/t/24-sorting.t @@ -1,11 +1,11 @@ -# $Id: 24-sorting.t,v 1.3 2005-11-08 16:41:25 mike Exp $ +# $Id: 24-sorting.t,v 1.5 2005-11-18 17:53:16 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' use strict; use warnings; -use Test::More tests => 27; +use Test::More tests => 29; use MARC::Record; BEGIN { use_ok('ZOOM') }; @@ -38,9 +38,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