From 167697e914e4aa5d3b47cdc1a88c239dd9b8fd9b Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Fri, 15 Oct 2010 12:57:40 +0100 Subject: [PATCH] More explicit report when scan identity test fails --- t/15-scan.t | 2 +- t/25-scan.t | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(); -- 1.7.10.4