diff options
author | Jani Nikula <jani@nikula.org> | 2013-03-09 16:56:51 +0200 |
---|---|---|
committer | David Bremner <bremner@unb.ca> | 2013-03-30 18:34:22 -0400 |
commit | 6b405143d76bdbb99a101ae88b2e63224371d911 (patch) | |
tree | 882669df4001f08cecf3f446c40647d8067c5404 /test/tagging | |
parent | 26105ddbb01c954e4fe04d5d4652e7b165521ba2 (diff) |
test: notmuch tag --remove-all
Diffstat (limited to 'test/tagging')
-rwxr-xr-x | test/tagging | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/tagging b/test/tagging index 1f5632cb..dc118f33 100755 --- a/test/tagging +++ b/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 |