From: Mike Taylor Date: Fri, 15 Oct 2010 11:57:40 +0000 (+0100) Subject: More explicit report when scan identity test fails X-Git-Tag: v1.28~8 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=167697e914e4aa5d3b47cdc1a88c239dd9b8fd9b;p=ZOOM-Perl-moved-to-github.git More explicit report when scan identity test fails --- diff --git a/t/15-scan.t b/t/15-scan.t index 0885cf3..e2904a3 100644 --- a/t/15-scan.t +++ b/t/15-scan.t @@ -31,7 +31,7 @@ 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 identical to term"); + ok($disp eq $term, "display term $i ($disp) identical to term ($term)"); } Net::Z3950::ZOOM::scanset_destroy($ss); diff --git a/t/25-scan.t b/t/25-scan.t index ff145c1..a3fc171 100644 --- a/t/25-scan.t +++ b/t/25-scan.t @@ -28,7 +28,7 @@ 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 identical to term"); + ok($disp eq $term, "display term $i ($disp) identical to term ($term)"); } $ss->destroy();