Changeset 2000

Show
Ignore:
Timestamp:
12/18/07 00:13:16 (5 months ago)
Author:
joshr
Message:

we can find keywords in the index now.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • Swishetest/trunk/t/030-C030-medsm-xml.t

    r1970 r2000  
    5656            for my $word (@$words) {    # then, one test for each word in the test 
    5757                my @rows = DoSearch::do_search($index, "'$word'");  # quote the word 
    58                 my ($num_expected_rows) = (     # look up the count unless it's AND, OR, or NOT 
    59                     ($word =~ /^\s*(and|or|not|near)\s*$/i) ? 0 : ($word_count->{lc($word)} || 1)); 
     58                #my ($num_expected_rows) = (     # look up the count unless it's AND, OR, or NOT 
     59                #    ($word =~ /^\s*(and|or|not|near)\s*$/i) ? 0 : ($word_count->{lc($word)} || 1)); 
     60                my $num_expected_rows = $word_count->{lc($word)}; 
    6061                cmp_ok(scalar(@rows), "==", $num_expected_rows, "search '$word' ($filetype index from $dict)"); 
    6162            }