Skip to content

Commit 461af49

Browse files
committed
fixed tests
1 parent ea8ffb0 commit 461af49

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

src/analysis/text/search/LuceneTest.rsc

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,9 @@ lexical Word
2525
= [A-Za-z0-9\-]+ !>> [A-Za-z0-9]
2626
| ![A-Za-z0-9\-]+ !>> ![A-Za-z0-9]
2727
;
28-
2928

3029
// we test using all pico programs in the library
31-
public set[loc] programs = find(|project://rascal-lucene/|, "pico");
30+
public set[loc] programs = find(|project://rascal-lucene/src|, "pico");
3231

3332
// next to the src field we add comments and an extra field to index on.
3433
data Document(loc comments = |unknown:///|, str extra = "");
@@ -99,13 +98,13 @@ void extraSearch() {
9998
}
10099
101100
test bool extraTermsTest() = listTerms(indexFolder, "extra") == {
102-
<"est",2>,
103-
<"tbmen",2>,
104-
<"vires",2>,
105-
<"dbndb",2>,
106-
<"voluntbs",2>,
107-
<"desint",2>,
108-
<"lbu",2>
101+
<"est",1>,
102+
<"tbmen",1>,
103+
<"vires",1>,
104+
<"dbndb",1>,
105+
<"voluntbs",1>,
106+
<"desint",1>,
107+
<"lbu",1>
109108
};
110109
111110
test bool identifierTest() = document(loc l) <- searchIndex(indexFolder, "src:repnr") && l == |project://rascal-lucene/src/analysis/text/search/testdata/Fac.pico|;

0 commit comments

Comments
 (0)