bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#28385: ert "should" macros to not be globally visible


From: Glenn Morris
Subject: bug#28385: ert "should" macros to not be globally visible
Date: Thu, 07 Sep 2017 14:24:02 -0400
User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)

Package: emacs
Version: 25.2
Severity: wishlist

emacs -Q -l ert

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.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]