]> git.notmuchmail.org Git - notmuch/commitdiff
test/sexp: add test for and of stemmed terms.
authorDavid Bremner <david@tethera.net>
Sat, 9 Apr 2022 19:45:47 +0000 (16:45 -0300)
committerDavid Bremner <david@tethera.net>
Fri, 15 Apr 2022 11:25:19 +0000 (08:25 -0300)
Previously only singled stemmed terms were tested.

test/T081-sexpr-search.sh

index e2936cd74f297bbc2b11b15ba41571434266553e..07b1261958eaa66298cd448a2a8bd8eb90b2b78b 100755 (executable)
@@ -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