X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=test%2FT080-search.sh;h=9bda1eb9f4e4597eb0f64cad3272c0260941dac0;hb=e3b1a0a6a59691f6be9fd0cb3b0d01bb9a7fe2b7;hp=70f2854973a9ca29e1cf0c9d483cf1b00564e7f4;hpb=a863de1e43ee34f6f5794a2759fdceb287e851aa;p=notmuch diff --git a/test/T080-search.sh b/test/T080-search.sh index 70f28549..9bda1eb9 100755 --- a/test/T080-search.sh +++ b/test/T080-search.sh @@ -85,11 +85,11 @@ add_message '[subject]="search by to (name)"' '[date]="Sat, 01 Jan 2000 12:00:00 output=$(notmuch search 'to:"Search By To Name"' | notmuch_search_sanitize) test_expect_equal "$output" "thread:XXX 2000-01-01 [1/1] Notmuch Test Suite; search by to (name) (inbox unread)" -test_begin_subtest "Search by to: (name and adress)" +test_begin_subtest "Search by to: (name and address)" output=$(notmuch search 'to:"Search By To Name "' | notmuch_search_sanitize) test_expect_equal "$output" "thread:XXX 2000-01-01 [1/1] Notmuch Test Suite; search by to (name) (inbox unread)" -test_begin_subtest "Search by to: without prefix (name and adress)" +test_begin_subtest "Search by to: without prefix (name and address)" output=$(notmuch search '"Search By To Name "' | notmuch_search_sanitize) test_expect_equal "$output" "thread:XXX 2000-01-01 [1/1] Notmuch Test Suite; search by to (name) (inbox unread)" @@ -189,4 +189,11 @@ test_begin_subtest "parts do not have adjacent term positions" output=$(notmuch search id:termpos and '"c x"') test_expect_equal "$output" "" +if [[ NOTMUCH_HAVE_SFSEXP = 1 ]]; then + test_begin_subtest "sexpr query: all messages" + notmuch search '*' > EXPECTED + notmuch search --query=sexp '()' > OUTPUT + test_expect_equal_file EXPECTED OUTPUT +fi + test_done