mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 10:58:10 +01:00
test: add test for both adding and removing a tag at the same time
The current behaviour is that regardless of the order in which the addition and removal of a tag are specified, the tag is added. Signed-off-by: Jani Nikula <jani@nikula.org>
This commit is contained in:
parent
f57ef64302
commit
918b803597
1 changed files with 8 additions and 0 deletions
|
@ -38,4 +38,12 @@ test_expect_equal "$output" "\
|
|||
thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; One (:\" inbox tag1 unread)
|
||||
thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; Two (inbox tag1 unread)"
|
||||
|
||||
test_begin_subtest "Tagging order"
|
||||
notmuch tag +tag4 -tag4 One
|
||||
notmuch tag -tag4 +tag4 Two
|
||||
output=$(notmuch search \* | notmuch_search_sanitize)
|
||||
test_expect_equal "$output" "\
|
||||
thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; One (:\" inbox tag1 tag4 unread)
|
||||
thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; Two (inbox tag1 tag4 unread)"
|
||||
|
||||
test_done
|
||||
|
|
Loading…
Reference in a new issue