From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id sG9KO4HiUWJ7MAAAgWs5BA (envelope-from ) for ; Sat, 09 Apr 2022 21:46:09 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id yO72M4HiUWLUIAAAG6o9tA (envelope-from ) for ; Sat, 09 Apr 2022 21:46:09 +0200 Received: from mail.notmuchmail.org (yantan.tethera.net [IPv6:2a01:4f9:c011:7a79::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 52A0D1921A for ; Sat, 9 Apr 2022 21:46:09 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id A28BA5F73C; Sat, 9 Apr 2022 19:46:06 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id 85DBB5F710 for ; Sat, 9 Apr 2022 19:46:04 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id D6E445FBD7; Sat, 9 Apr 2022 15:46:03 -0400 (EDT) Received: (nullmailer pid 807443 invoked by uid 1000); Sat, 09 Apr 2022 19:46:02 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: [PATCH v2 1/2] test/sexp: add test for and of stemmed terms. Date: Sat, 9 Apr 2022 16:45:47 -0300 Message-Id: <20220409194548.806763-2-david@tethera.net> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220409194548.806763-1-david@tethera.net> References: <20220409194548.806763-1-david@tethera.net> MIME-Version: 1.0 Message-ID-Hash: RQVZFJBY5DJIK37J3PPRZIF5YCJMZTGQ X-Message-ID-Hash: RQVZFJBY5DJIK37J3PPRZIF5YCJMZTGQ X-MailFrom: bremner@tethera.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1649533569; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post; bh=kI6rKM58Ys1HeiwMVrxXiQIrYMBLAR1/uQxlQWrKp5s=; b=Sew6Y+7sjjTNfPXqO55xUK5eNBvWpdMCjW43dfZc0OtPqIju1311yzmYRYLKlqCx9jX0Fx fgm5iaovSl8cIuueWf5zEofCAVdB4nn/Wt/W/kBft0zD+VE7bUuqc7ZpKu5s1bsITfUNGn cHHgLdSzTst4E97FQZfV8ZCGP9PZR6HeWpuPs2rP5yKhSKhJ1/zWNfEq4bKqul/WJQV2QL 73GpNUtpRGdHyOdKMTFAqTw9rCYYTs0lhkf+lJzSNpneoNA1ZXE7hmpgng6FlrnmQbyjsk uZaHJeDOdMZiDCJIgj3kT3BjfLG6bck2jeozANR5zAQHFZWY2IlBQpE3yhQJ2A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1649533569; a=rsa-sha256; cv=none; b=kalxwfmTUA+lqIE4lDbzOX7+i6pGJzOu9i/IWCNjfF1YHoULcLdoUF7qA6aS2qGkFVJwlp GIgqiuOi5gZAafG1vFx6xh+kYXsfuTeiJ9A2K2jQUd14k89zeEPJOCO6YklaXUTQ1YUOJc kL4YuNBi5FEP5ig9YKqdxuZzERFf9Qb/Vjg9WfmIVIIiU6kTD+gvJvKtU+6ihXM5wKmXfQ SYIW4dVwF4NHk2T3TtbYH/QLyrRKW0TgR66wX1RCrEHwkGYrjXkhXW6CGL3Z0QjaDqntOG bNViA0CZ63HMcy+TMFDIS4RJcFMsUjcbFoThDj/Qy7NiSBo3mTK6bf3Mv0lP6w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -2.00 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 52A0D1921A X-Spam-Score: -2.00 X-Migadu-Scanner: scn0.migadu.com X-TUID: ryqI5Pv9Tju0 Previously only singled stemmed terms were tested. --- test/T081-sexpr-search.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/T081-sexpr-search.sh b/test/T081-sexpr-search.sh index e2936cd7..07b12619 100755 --- a/test/T081-sexpr-search.sh +++ b/test/T081-sexpr-search.sh @@ -31,6 +31,13 @@ thread:XXX 2009-11-18 [1/3] Carl Worth| Jan Janak; [notmuch] What a great idea EOF test_expect_equal_file EXPECTED OUTPUT +test_begin_subtest "and of stemmed terms" +notmuch search --query=sexp '(and wonderful wizard)' | notmuch_search_sanitize > OUTPUT +cat < EXPECTED +thread:XXX 2009-11-18 [1/3] Carl Worth| Jan Janak; [notmuch] What a great idea! (inbox unread) +EOF +test_expect_equal_file EXPECTED OUTPUT + test_begin_subtest "or of exact terms" notmuch search --query=sexp '(or "php" "wizard")' | notmuch_search_sanitize > OUTPUT cat < EXPECTED -- 2.35.1