aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2017-03-24 19:52:51 -0300
committerDavid Bremner <david@tethera.net>2017-03-29 20:44:32 -0300
commitcb84f8487833c19ce13edb769fa6421547077725 (patch)
tree23d688469092f86913bcd5eb75d111edd5b98153 /test
parentbc0c051e042650106c5772d1817af1f7db32fb92 (diff)
lib: handle empty string in regexp field processors
The non-field processor behaviour is is convert the corresponding queries into a search for the unprefixed terms. This yields pretty surprising results so I decided to generate a query that would match the terms (i.e. none with that prefix) generated for an empty header.
Diffstat (limited to 'test')
-rwxr-xr-xtest/T650-regexp-query.sh2
1 files changed, 0 insertions, 2 deletions
diff --git a/test/T650-regexp-query.sh b/test/T650-regexp-query.sh
index f2ae1387..9599c104 100755
--- a/test/T650-regexp-query.sh
+++ b/test/T650-regexp-query.sh
@@ -16,7 +16,6 @@ add_message '[from]="-" [subject]="empty from"'
add_message '[subject]="-"'
test_begin_subtest "null from: search"
-test_subtest_known_broken
notmuch search 'from:""' | notmuch_search_sanitize > OUTPUT
cat <<EOF > EXPECTED
thread:XXX 2001-01-05 [1/1] -; empty from (inbox unread)
@@ -24,7 +23,6 @@ EOF
test_expect_equal_file EXPECTED OUTPUT
test_begin_subtest "null subject: search"
-test_subtest_known_broken
notmuch search 'subject:""' | notmuch_search_sanitize > OUTPUT
cat <<EOF > EXPECTED
thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; - (inbox unread)