projects
/
ZOOM-Perl-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add Ubuntu quantal
[ZOOM-Perl-moved-to-github.git]
/
t
/
14-sorting.t
diff --git
a/t/14-sorting.t
b/t/14-sorting.t
index
ea74c6c
..
341ed44
100644
(file)
--- a/
t/14-sorting.t
+++ b/
t/14-sorting.t
@@
-1,5
+1,3
@@
-# $Id: 14-sorting.t,v 1.8 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 14-sorting.t'
# Before `make install' is performed this script should be runnable with
# `make test'. After `make install' it should work as `perl 14-sorting.t'
@@
-33,8
+31,7
@@
my $previous = ""; # Sorts before all legitimate titles
foreach my $i (1 .. $n) {
my $rec = Net::Z3950::ZOOM::resultset_record($rs, $i-1);
ok(defined $rec, "got record $i of $n");
foreach my $i (1 .. $n) {
my $rec = Net::Z3950::ZOOM::resultset_record($rs, $i-1);
ok(defined $rec, "got record $i of $n");
- my $len = 0;
- my $raw = Net::Z3950::ZOOM::record_get($rec, "raw", $len);
+ my $raw = Net::Z3950::ZOOM::record_get($rec, "raw");
my $marc = new_from_usmarc MARC::Record($raw);
my $title = $marc->title();
ok($title ge $previous, "title '$title' ge previous '$previous'");
my $marc = new_from_usmarc MARC::Record($raw);
my $title = $marc->title();
ok($title ge $previous, "title '$title' ge previous '$previous'");
@@
-52,8
+49,7
@@
$previous = "z"; # Sorts after all legitimate titles
foreach my $i (1 .. $n) {
my $rec = Net::Z3950::ZOOM::resultset_record($rs, $i-1);
ok(defined $rec, "got record $i of $n");
foreach my $i (1 .. $n) {
my $rec = Net::Z3950::ZOOM::resultset_record($rs, $i-1);
ok(defined $rec, "got record $i of $n");
- my $len = 0;
- my $raw = Net::Z3950::ZOOM::record_get($rec, "raw", $len);
+ my $raw = Net::Z3950::ZOOM::record_get($rec, "raw");
my $marc = new_from_usmarc MARC::Record($raw);
my $title = $marc->title();
ok($title le $previous, "title '$title' le previous '$previous'");
my $marc = new_from_usmarc MARC::Record($raw);
my $title = $marc->title();
ok($title le $previous, "title '$title' le previous '$previous'");