diff options
author | Jani Nikula <jani@nikula.org> | 2012-03-27 00:04:08 +0300 |
---|---|---|
committer | David Bremner <bremner@debian.org> | 2012-03-30 21:20:21 -0300 |
commit | 918b80359727de2dd87f26a252de8faee2eff78c (patch) | |
tree | cf5ff36b2f3ad33ab79a709b82b1ef439c38cbaa /test | |
parent | f57ef643026540d6eb20179ccc92e54445a9d21a (diff) |
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>
Diffstat (limited to 'test')
-rwxr-xr-x | test/tagging | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/tagging b/test/tagging index 77202bf9..3acf1bc0 100755 --- a/test/tagging +++ b/test/tagging @@ -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 |