Skip to content

Commit

Permalink
fix test case after maxGramSize of EdgeNGram changed
Browse files Browse the repository at this point in the history
  • Loading branch information
YeonghyeonKO committed Sep 20, 2024
1 parent 3b442bd commit 1a0329b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@ public void testNGramFilterPayload() throws Exception {
stream.close();
}

/** Test EdgeNGramTokenizerFactory */
/** Test EdgeNGramTokenizerFactory with default (after commit '3b442bd3834') */
public void testEdgeNGramTokenizer() throws Exception {
Reader reader = new StringReader("test");
TokenStream stream = tokenizerFactory("EdgeNGram").create();
((Tokenizer) stream).setReader(reader);
assertTokenStreamContents(stream, new String[] {"t"});
assertTokenStreamContents(stream, new String[] {"t", "te"});
}

/** Test EdgeNGramTokenizerFactory with min and max gram size */
Expand All @@ -107,7 +107,7 @@ public void testEdgeNGramTokenizer2() throws Exception {
assertTokenStreamContents(stream, new String[] {"t", "te"});
}

/** Test EdgeNGramFilterFactory with old defaults */
/** Test EdgeNGramFilterFactory with old defaults (before commit '3b442bd3834') */
public void testEdgeNGramFilter() throws Exception {
Reader reader = new StringReader("test");
TokenStream stream = whitespaceMockTokenizer(reader);
Expand Down

0 comments on commit 1a0329b

Please sign in to comment.