From eb3389061bd4631980531cc8bb8dd3ef933313ad Mon Sep 17 00:00:00 2001 From: Matthias Osswald Date: Mon, 28 Aug 2023 11:31:45 +0200 Subject: [PATCH] Fix test by removing non-longest token. --- .../analysis/compound/TestCompoundWordTokenFilter.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/lucene/analysis/common/src/test/org/apache/lucene/analysis/compound/TestCompoundWordTokenFilter.java b/lucene/analysis/common/src/test/org/apache/lucene/analysis/compound/TestCompoundWordTokenFilter.java index 446f25d8d1d..73c5b5cf699 100644 --- a/lucene/analysis/common/src/test/org/apache/lucene/analysis/compound/TestCompoundWordTokenFilter.java +++ b/lucene/analysis/common/src/test/org/apache/lucene/analysis/compound/TestCompoundWordTokenFilter.java @@ -255,12 +255,10 @@ public class TestCompoundWordTokenFilter extends BaseTokenStreamTestCase { assertTokenStreamContents( tf, - new String[] { - "Basfiolsfodralmakaregesäll", "Bas", "fiolsfodral", "fodral", "makare", "gesäll" - }, - new int[] {0, 0, 0, 0, 0, 0}, - new int[] {26, 26, 26, 26, 26, 26}, - new int[] {1, 0, 0, 0, 0, 0}); + new String[] {"Basfiolsfodralmakaregesäll", "Bas", "fiolsfodral", "makare", "gesäll"}, + new int[] {0, 0, 0, 0, 0}, + new int[] {26, 26, 26, 26, 26}, + new int[] {1, 0, 0, 0, 0}); } public void testTokenEndingWithWordComponentOfMinimumLength() throws Exception {