From c6a96b5b0a5a8701f610d63b60fe1582e183f208 Mon Sep 17 00:00:00 2001 From: Olly Betts Date: Thu, 7 Mar 2024 17:07:14 +1300 Subject: [PATCH] Extend testcase to cover the IN_GROUP2 case too --- xapian-core/tests/api_queryparser.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/xapian-core/tests/api_queryparser.cc b/xapian-core/tests/api_queryparser.cc index 3a92160c9..90cc86396 100644 --- a/xapian-core/tests/api_queryparser.cc +++ b/xapian-core/tests/api_queryparser.cc @@ -741,8 +741,12 @@ static const test test_or_queries[] = { { "title:久有 归 天愿", "((XT久@1 AND XT有@1) OR 归@2 OR (天@3 AND 愿@3))" }, { "h众ello万众", "(Zh@1 OR 众@2 OR Zello@3 OR (万@4 AND 众@4))" }, - { "x 我y", "(Zx@1 OR 我@2 OR Zy@3)" }, // WORD_BREAK ends group term - { "x 我 y", "(Zx@1 OR 我@2 OR Zy@3)" }, // WORD_BREAK ends group term + + // Regression tests that UNBROKEN_WORDS ends a term group: + { "x 我y", "(Zx@1 OR 我@2 OR Zy@3)" }, + { "x 我 y", "(Zx@1 OR 我@2 OR Zy@3)" }, + { "w x 我y", "(Zw@1 OR Zx@2 OR 我@3 OR Zy@4)" }, + { "w x 我 y", "(Zw@1 OR Zx@2 OR 我@3 OR Zy@4)" }, // Korean splits some words by whitespace, and there is no available tool // to crosscheck Korean word splits for these tests. So the expected values -- 2.11.4.GIT