X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=test%2Femacs-show;h=e9a714fa228720901a90b3b83d60fd33c9be6095;hb=5a48340bf19c42ccdec9b1777a42a79f6884f49f;hp=98005758e664b065b3f817c5c893c7adf8a78d35;hpb=69adeb52b1c095f570f590e8a8db7f219b875b35;p=notmuch diff --git a/test/emacs-show b/test/emacs-show index 98005758..e9a714fa 100755 --- a/test/emacs-show +++ b/test/emacs-show @@ -1,10 +1,9 @@ #!/usr/bin/env bash -test_description="Testing emacs notmuch-show view" +test_description="emacs notmuch-show view" . test-lib.sh test_begin_subtest "Hiding Original Message region at beginning of a message" -test_subtest_known_broken message_id='OriginalMessageHiding.1@notmuchmail.org' add_message \ [id]="$message_id" \ @@ -25,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