From: Lars Ingebrigtsen <larsi@gnus.org>
To: Glenn Morris <rgm@gnu.org>
Cc: 28385@debbugs.gnu.org
Subject: bug#28385: ert "should" macros to not be globally visible
Date: Mon, 15 Jul 2019 13:01:10 +0200 [thread overview]
Message-ID: <87k1cjd0jt.fsf@mouse.gnus.org> (raw)
In-Reply-To: <dxzia6v03h.fsf@fencepost.gnu.org> (Glenn Morris's message of "Thu, 07 Sep 2017 14:24:02 -0400")
Glenn Morris <rgm@gnu.org> writes:
> Now "should", "should-not", and "should-error" are globally defined as
> macros (with no "ert-" prefix). They are only useful inside ert-deftests.
> Perhaps they should steal a trick from the similar "skip-unless", which
> is not globally visible. The global definition is "ert--skip-unless",
> and the ert-deftest macro basically makes "skip-unless" an alias for
> this inside the body of a test. This seems cleaner.
When writing tests, I find it convenient that I can `C-x C-e'
(should ...)
terms. I mean, I could just `C-x C-e' the insides of the form instead,
but still...
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
next prev parent reply other threads:[~2019-07-15 11:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-09-07 18:24 bug#28385: ert "should" macros to not be globally visible Glenn Morris
2019-07-15 11:01 ` Lars Ingebrigtsen [this message]
2019-09-29 1:26 ` Stefan Kangas
2020-08-10 16:58 ` Stefan Kangas
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k1cjd0jt.fsf@mouse.gnus.org \
--to=larsi@gnus.org \
--cc=28385@debbugs.gnu.org \
--cc=rgm@gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.