X-Git-Url: http://git.indexdata.com/?p=ZOOM-Perl-moved-to-github.git;a=blobdiff_plain;f=t%2F25-scan.t;h=01aba9e01d83536e44b77d1f9f4b5cf5e5eb7ea8;hp=6b5d5c08935cd668db8635dc03c0fa98ffe8df97;hb=2761b3fe33124ad406087cde2955303473a6f01b;hpb=f2e9c8fbb53bd25479c6666069b27df2940d31ba diff --git a/t/25-scan.t b/t/25-scan.t index 6b5d5c0..01aba9e 100644 --- a/t/25-scan.t +++ b/t/25-scan.t @@ -3,7 +3,7 @@ use strict; use warnings; -use Test::More tests => 87; +use Test::More tests => 81; BEGIN { use_ok('ZOOM') }; @@ -49,8 +49,14 @@ 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 ($term) was in term list (@terms)"); + + # Previously we used to assert that the each title-term was + # included in the initial term-list that we got by scanning across + # all indexes. Of course this will not in general be true, + # because not all terms are title terms, which means that the $n + # title terms will include some that are past the end of $n + # general terms. So remove that test. + #ok((grep { $term eq $_ } @terms), "title term ($term) was in term list (@terms)"); } $ss->destroy();