jorgenschaefer / emacs-buttercup

Behavior-Driven Emacs Lisp Testing
GNU General Public License v3.0
360 stars 44 forks source link

Check position of the :var and :var* keywords #224

Closed snogge closed 1 year ago

snogge commented 1 year ago

Signal an error if the :var or :var* keyword is found in any other position than the first argument of a describe macro. Fixes #223.

There are several issues with the :var(*) keywords, the most important being their inability to handle dynamic variables (#127). But there is also the question of what the correct behaviour would be if you use multiple :var(*) or when they are put anywhere but at the beginning of the describe macro.