mirror of https://github.com/apache/lucene.git
fixed dead store variable
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1144269 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
96c5589308
commit
6c5621f16c
|
@ -97,16 +97,15 @@ public class TestThaiAnalyzer extends BaseTokenStreamTestCase {
|
||||||
*/
|
*/
|
||||||
public void testPositionIncrements() throws Exception {
|
public void testPositionIncrements() throws Exception {
|
||||||
assumeTrue("JRE does not support Thai dictionary-based BreakIterator", ThaiWordFilter.DBBI_AVAILABLE);
|
assumeTrue("JRE does not support Thai dictionary-based BreakIterator", ThaiWordFilter.DBBI_AVAILABLE);
|
||||||
ThaiAnalyzer analyzer = new ThaiAnalyzer(TEST_VERSION_CURRENT);
|
final ThaiAnalyzer analyzer = new ThaiAnalyzer(TEST_VERSION_CURRENT);
|
||||||
|
assertAnalyzesTo(analyzer, "การที่ได้ต้อง the แสดงว่างานดี",
|
||||||
assertAnalyzesTo(new ThaiAnalyzer(TEST_VERSION_CURRENT), "การที่ได้ต้อง the แสดงว่างานดี",
|
|
||||||
new String[] { "การ", "ที่", "ได้", "ต้อง", "แสดง", "ว่า", "งาน", "ดี" },
|
new String[] { "การ", "ที่", "ได้", "ต้อง", "แสดง", "ว่า", "งาน", "ดี" },
|
||||||
new int[] { 0, 3, 6, 9, 18, 22, 25, 28 },
|
new int[] { 0, 3, 6, 9, 18, 22, 25, 28 },
|
||||||
new int[] { 3, 6, 9, 13, 22, 25, 28, 30 },
|
new int[] { 3, 6, 9, 13, 22, 25, 28, 30 },
|
||||||
new int[] { 1, 1, 1, 1, 2, 1, 1, 1 });
|
new int[] { 1, 1, 1, 1, 2, 1, 1, 1 });
|
||||||
|
|
||||||
// case that a stopword is adjacent to thai text, with no whitespace
|
// case that a stopword is adjacent to thai text, with no whitespace
|
||||||
assertAnalyzesTo(new ThaiAnalyzer(TEST_VERSION_CURRENT), "การที่ได้ต้องthe แสดงว่างานดี",
|
assertAnalyzesTo(analyzer, "การที่ได้ต้องthe แสดงว่างานดี",
|
||||||
new String[] { "การ", "ที่", "ได้", "ต้อง", "แสดง", "ว่า", "งาน", "ดี" },
|
new String[] { "การ", "ที่", "ได้", "ต้อง", "แสดง", "ว่า", "งาน", "ดี" },
|
||||||
new int[] { 0, 3, 6, 9, 17, 21, 24, 27 },
|
new int[] { 0, 3, 6, 9, 17, 21, 24, 27 },
|
||||||
new int[] { 3, 6, 9, 13, 21, 24, 27, 29 },
|
new int[] { 3, 6, 9, 13, 21, 24, 27, 29 },
|
||||||
|
|
Loading…
Reference in New Issue