[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#28385: ert "should" macros to not be globally visible
From: |
Lars Ingebrigtsen |
Subject: |
bug#28385: ert "should" macros to not be globally visible |
Date: |
Mon, 15 Jul 2019 13:01:10 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#28385: ert "should" macros to not be globally visible,
Lars Ingebrigtsen <=