Re: [PATCH 1/2] test: add test for emacs notmuch-show-strip-re function
authorTomi Ollila <tomi.ollila@iki.fi>
Tue, 5 Jun 2012 17:40:57 +0000 (20:40 +0300)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:47:38 +0000 (09:47 -0800)
4e/0021b122376d228f55e9c67dd624bd84164a83 [new file with mode: 0644]

diff --git a/4e/0021b122376d228f55e9c67dd624bd84164a83 b/4e/0021b122376d228f55e9c67dd624bd84164a83
new file mode 100644 (file)
index 0000000..a1e3bb7
--- /dev/null
@@ -0,0 +1,95 @@
+Return-Path: <tomi.ollila@iki.fi>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 29D2D431FAF\r
+       for <notmuch@notmuchmail.org>; Tue,  5 Jun 2012 10:40:49 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
+       autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id i3TBoY1GM1VS for <notmuch@notmuchmail.org>;\r
+       Tue,  5 Jun 2012 10:40:48 -0700 (PDT)\r
+Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
+       by olra.theworths.org (Postfix) with ESMTP id 565E2431FAE\r
+       for <notmuch@notmuchmail.org>; Tue,  5 Jun 2012 10:40:48 -0700 (PDT)\r
+Received: by guru.guru-group.fi (Postfix, from userid 501)\r
+       id 0E2A210014D; Tue,  5 Jun 2012 20:40:58 +0300 (EEST)\r
+From: Tomi Ollila <tomi.ollila@iki.fi>\r
+To: Jani Nikula <jani@nikula.org>, notmuch@notmuchmail.org\r
+Subject: Re: [PATCH 1/2] test: add test for emacs notmuch-show-strip-re\r
+       function\r
+In-Reply-To:\r
+ <3a9ce3cd2074e311f86f3e416644b2879516ffbf.1338910938.git.jani@nikula.org>\r
+References:\r
+ <3a9ce3cd2074e311f86f3e416644b2879516ffbf.1338910938.git.jani@nikula.org>\r
+User-Agent: Notmuch/0.13.2+7~g08be9ce (http://notmuchmail.org) Emacs/23.1.1\r
+       (x86_64-redhat-linux-gnu)\r
+X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
+       $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
+       !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
+Date: Tue, 05 Jun 2012 20:40:57 +0300\r
+Message-ID: <m2y5o17j2u.fsf@guru.guru-group.fi>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Tue, 05 Jun 2012 17:40:49 -0000\r
+\r
+On Tue, Jun 05 2012, Jani Nikula <jani@nikula.org> wrote:\r
+\r
+> The function is used for stripping "re:" from subjects to generate\r
+> "bare subjects". Include broken test for having "re:" in the middle of\r
+> the subject.\r
+\r
+LGTM\r
+\r
+Tomi\r
+\r
+> ---\r
+>  test/emacs-show |   13 +++++++++++++\r
+>  1 file changed, 13 insertions(+)\r
+>\r
+> diff --git a/test/emacs-show b/test/emacs-show\r
+> index 2498564..1ddb28e 100755\r
+> --- a/test/emacs-show\r
+> +++ b/test/emacs-show\r
+> @@ -24,4 +24,17 @@ test_emacs "(notmuch-show \"id:$message_id\")\r
+>          (test-visible-output)"\r
+>  test_expect_equal_file OUTPUT EXPECTED\r
+>  \r
+> +test_begin_subtest "Bare subject #1"\r
+> +output=$(test_emacs '(notmuch-show-strip-re "Re: subject")')\r
+> +test_expect_equal "$output" '"subject"'\r
+> +\r
+> +test_begin_subtest "Bare subject #2"\r
+> +output=$(test_emacs '(notmuch-show-strip-re "re:Re: re:  Re:  re:subject")')\r
+> +test_expect_equal "$output" '"subject"'\r
+> +\r
+> +test_begin_subtest "Bare subject #3"\r
+> +test_subtest_known_broken\r
+> +output=$(test_emacs '(notmuch-show-strip-re "the cure: fix the regexp")')\r
+> +test_expect_equal "$output" '"the cure: fix the regexp"'\r
+> +\r
+>  test_done\r
+> -- \r
+> 1.7.9.5\r
+>\r
+> _______________________________________________\r
+> notmuch mailing list\r
+> notmuch@notmuchmail.org\r
+> http://notmuchmail.org/mailman/listinfo/notmuch\r