Partially revert last change

There is no need to call eval on Emacs 26+, but tests fail in
earlier versions without it, so bring it back, but this time with
lexical-binding, at least.

* dev/examples-to-tests.el (example-to-should): Bring back eval.
master
Basil L. Contovounesios 5 years ago
parent d7d0acb0e8
commit bf8a46273b
No known key found for this signature in database
GPG Key ID: 205AB54A5D5D8CFF
  1. 3
      dev/examples-to-tests.el

@ -29,7 +29,8 @@
((eq sym '~>)
`(should (approx-equal ,actual ,expected)))
((eq sym '!!>)
`(should-error ,actual :type ',expected))
;; FIXME: Tests fail on Emacs 24-25 without `eval' for some reason.
`(should-error (eval ',actual lexical-binding) :type ',expected))
((error "Invalid test case: %S" `(,actual ,sym ,expected)))))
(defmacro defexamples (cmd &rest examples)

Loading…
Cancel
Save