X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=test%2Ftagging;h=980ff9274b8228bd2c2559a756cafe1ec1fefaac;hb=f9878f917352d8f49c44496b6a0a4ce38ef901d4;hp=3acf1bc043261fc9418549969b5acec7e14d6d6c;hpb=918b80359727de2dd87f26a252de8faee2eff78c;p=notmuch diff --git a/test/tagging b/test/tagging index 3acf1bc0..980ff927 100755 --- a/test/tagging +++ b/test/tagging @@ -43,7 +43,11 @@ 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; One (:\" inbox tag1 unread) thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; Two (inbox tag1 tag4 unread)" +test_expect_code 1 "Empty tag names" 'notmuch tag + One' + +test_expect_code 1 "Tag name beginning with -" 'notmuch tag +- One' + test_done