From: Mike Taylor Date: Fri, 15 Oct 2010 12:07:58 +0000 (+0100) Subject: More explicit report when title-term-in-list test fails. X-Git-Tag: v1.28~6 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=f2e9c8fbb53bd25479c6666069b27df2940d31ba;p=ZOOM-Perl-moved-to-github.git More explicit report when title-term-in-list test fails. displayTerm==term assertion is now case-insensitive. --- diff --git a/t/15-scan.t b/t/15-scan.t index e2904a3..d17746c 100644 --- a/t/15-scan.t +++ b/t/15-scan.t @@ -31,7 +31,8 @@ foreach my $i (1 .. $n) { my $disp = Net::Z3950::ZOOM::scanset_display_term($ss, $i-1, $occ, $len); ok(defined $disp && $len eq length($disp), "display term $i of $n: '$disp' ($occ occurences)"); - ok($disp eq $term, "display term $i ($disp) identical to term ($term)"); + ok(lc($disp) eq lc($term), + "display term $i ($disp) equivalent to term ($term)"); } Net::Z3950::ZOOM::scanset_destroy($ss); @@ -51,7 +52,8 @@ foreach my $i (1 .. $n) { "got title term $i of $n: '$term' ($occ occurences)"); ok($term ge $previous, "title term '$term' ge previous '$previous'"); $previous = $term; - ok((grep { $term eq $_ } @terms), "title term was in term list"); + ok((grep { $term eq $_ } @terms), + "title term ($term) was in term list (@terms)"); } Net::Z3950::ZOOM::scanset_destroy($ss);