From: Mike Taylor Date: Fri, 15 Oct 2010 12:07:54 +0000 (+0100) Subject: More explicit report when title-term-in-list test fails. X-Git-Tag: v1.28~7 X-Git-Url: http://git.indexdata.com/?p=ZOOM-Perl-moved-to-github.git;a=commitdiff_plain;h=3de4d31c929b337b87b64122fbede553c5586f5a More explicit report when title-term-in-list test fails. displayTerm==term assertion is now case-insensitive. --- diff --git a/t/25-scan.t b/t/25-scan.t index a3fc171..6b5d5c0 100644 --- a/t/25-scan.t +++ b/t/25-scan.t @@ -28,7 +28,8 @@ foreach my $i (1 .. $n) { (my $disp, $occ) = $ss->display_term($i-1); ok(defined $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)"); } $ss->destroy(); @@ -48,7 +49,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)"); } $ss->destroy();