From 3de4d31c929b337b87b64122fbede553c5586f5a Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Fri, 15 Oct 2010 13:07:54 +0100 Subject: [PATCH] More explicit report when title-term-in-list test fails. displayTerm==term assertion is now case-insensitive. --- t/25-scan.t | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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(); -- 1.7.10.4