Changeset 2000
- Timestamp:
- 12/18/07 00:13:16 (5 months ago)
- Files:
-
- Swishetest/trunk/t/030-C030-medsm-xml.t (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
Swishetest/trunk/t/030-C030-medsm-xml.t
r1970 r2000 56 56 for my $word (@$words) { # then, one test for each word in the test 57 57 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)}; 60 61 cmp_ok(scalar(@rows), "==", $num_expected_rows, "search '$word' ($filetype index from $dict)"); 61 62 }
