mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 10:58:10 +01:00
test: notmuch tag --remove-all
This commit is contained in:
parent
26105ddbb0
commit
6b405143d7
1 changed files with 16 additions and 0 deletions
16
test/tagging
16
test/tagging
|
@ -30,6 +30,22 @@ 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 "Remove all"
|
||||
notmuch tag --remove-all One
|
||||
notmuch tag --remove-all +tag5 +tag6 +unread Two
|
||||
output=$(notmuch search \* | notmuch_search_sanitize)
|
||||
test_expect_equal "$output" "\
|
||||
thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; One ()
|
||||
thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; Two (tag5 tag6 unread)"
|
||||
|
||||
test_begin_subtest "Remove all with a no-op"
|
||||
notmuch tag +inbox +tag1 +unread One
|
||||
notmuch tag --remove-all +foo +inbox +tag1 -foo +unread Two
|
||||
output=$(notmuch search \* | notmuch_search_sanitize)
|
||||
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 "Special characters in tags"
|
||||
notmuch tag +':" ' \*
|
||||
notmuch tag -':" ' Two
|
||||
|
|
Loading…
Reference in a new issue