diff options
| author | David Bremner <david@tethera.net> | 2022-04-09 16:45:47 -0300 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2022-04-15 08:25:19 -0300 |
| commit | fc3bb11808d8e7d02265ddd08cbffa4ab9d712a2 (patch) | |
| tree | 4173894081fbf14bd2bb9d95e7100f95cdea18a4 | |
| parent | 97f16b26518036b2c493dd6af11d98006ca49f77 (diff) | |
test/sexp: add test for and of stemmed terms.
Previously only singled stemmed terms were tested.
| -rwxr-xr-x | test/T081-sexpr-search.sh | 7 |
1 files changed, 7 insertions, 0 deletions
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 <<EOF > 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 <<EOF > EXPECTED |
