X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=test%2Femacs-show;h=e9a714fa228720901a90b3b83d60fd33c9be6095;hb=c62126238b2ce6194b3c6511553951497aedf295;hp=2498564f89e433328850c7e60106878a49e74566;hpb=d99f15d7ee38d606a2b3b5bd34f1e6c787b3b8a2;p=notmuch diff --git a/test/emacs-show b/test/emacs-show index 2498564f..e9a714fa 100755 --- a/test/emacs-show +++ b/test/emacs-show @@ -24,4 +24,16 @@ test_emacs "(notmuch-show \"id:$message_id\") (test-visible-output)" test_expect_equal_file OUTPUT EXPECTED +test_begin_subtest "Bare subject #1" +output=$(test_emacs '(notmuch-show-strip-re "Re: subject")') +test_expect_equal "$output" '"subject"' + +test_begin_subtest "Bare subject #2" +output=$(test_emacs '(notmuch-show-strip-re "re:Re: re: Re: re:subject")') +test_expect_equal "$output" '"subject"' + +test_begin_subtest "Bare subject #3" +output=$(test_emacs '(notmuch-show-strip-re "the cure: fix the regexp")') +test_expect_equal "$output" '"the cure: fix the regexp"' + test_done