mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-25 12:28:09 +01:00
test: add known broken test for regexp search of second subject
We expect this to give the same answer as the non-regexp subject search. It does not because the regexp search relies on the value slot, which currently contains only one subject.
This commit is contained in:
parent
f3f4297c7f
commit
4ac23c5978
1 changed files with 10 additions and 0 deletions
|
@ -47,6 +47,16 @@ EOF
|
||||||
notmuch search --output=files subject:'"message 2"' | notmuch_dir_sanitize > OUTPUT
|
notmuch search --output=files subject:'"message 2"' | notmuch_dir_sanitize > OUTPUT
|
||||||
test_expect_equal_file EXPECTED OUTPUT
|
test_expect_equal_file EXPECTED OUTPUT
|
||||||
|
|
||||||
|
test_begin_subtest 'Regexp search for second subject'
|
||||||
|
test_subtest_known_broken
|
||||||
|
cat <<EOF >EXPECTED
|
||||||
|
MAIL_DIR/copy0
|
||||||
|
MAIL_DIR/copy1
|
||||||
|
MAIL_DIR/copy2
|
||||||
|
EOF
|
||||||
|
notmuch search --output=files 'subject:"/message 2/"' | notmuch_dir_sanitize > OUTPUT
|
||||||
|
test_expect_equal_file EXPECTED OUTPUT
|
||||||
|
|
||||||
add_message '[id]="duplicate"' '[body]="sekrit" [filename]=copy3'
|
add_message '[id]="duplicate"' '[body]="sekrit" [filename]=copy3'
|
||||||
test_begin_subtest 'search for body in duplicate file'
|
test_begin_subtest 'search for body in duplicate file'
|
||||||
cat <<EOF >EXPECTED
|
cat <<EOF >EXPECTED
|
||||||
|
|
Loading…
Reference in a new issue