discussion and development of piem
 help / color / mirror / code / Atom feed
From: Kyle Meyer <kyle@kyleam.com>
To: piem@inbox.kyleam.com
Subject: Re: [PATCH] Add basic integration for Rmail
Date: Thu, 27 May 2021 19:23:59 -0400	[thread overview]
Message-ID: <875yz3iwvk.fsf@kyleam.com> (raw)
In-Reply-To: <20210527213001.5265-1-kyle@kyleam.com>

Kyle Meyer writes:

> diff --git a/tests/piem-rmail-tests.el b/tests/piem-rmail-tests.el
[...]
> +
> +(ert-deftest piem-rmail-get-inbox ()

Hmm, as the name indicates, I originally meant for this test to cover
just piem-rmail-get-inbox...

> +  (let ((piem-inboxes '(("foo" :address "i@inbox.example.com")))
> +        (mbox-text "\
> +From mboxrd@z Thu Jan  1 00:00:00 1970
[...]
> +"))
> +    (should
> +     (equal "foo"
> +            (with-temp-buffer
> +              (insert mbox-text)
> +              (rmail-mode)
> +              (piem-rmail-get-inbox))))
> +    (should
> +     (equal (list "123@example.com" "456@example.com")
> +            (with-temp-buffer
> +              (insert mbox-text)
> +              (rmail-mode)
> +              (rmail-first-message)
> +              (list (piem-rmail-get-mid)
> +                    (progn
> +                      (rmail-next-message 1)
> +                      (piem-rmail-get-mid))))))))

... but then I ended up testing piem-rmail-get-mid in the same test.
I'll move the piem-rmail-get-mid bits into a dedicated test.

  reply	other threads:[~2021-05-27 23:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-27 21:30 [PATCH] Add basic integration for Rmail Kyle Meyer
2021-05-27 23:23 ` Kyle Meyer [this message]
2021-05-27 23:27   ` [PATCH v2] " Kyle Meyer
2021-05-28  2:31     ` Kyle Meyer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://git.kyleam.com/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=875yz3iwvk.fsf@kyleam.com \
    --to=kyle@kyleam.com \
    --cc=piem@inbox.kyleam.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.kyleam.com/piem/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).