From: Andrea Corallo Date: Mon, 4 Nov 2019 22:13:23 +0000 (+0100) Subject: add test for macro definition X-Git-Tag: emacs-28.0.90~2727^2~1037 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9ee6b685a338cd06d4b053e39f3e2da505d20612;p=emacs.git add test for macro definition --- diff --git a/test/src/comp-test-funcs.el b/test/src/comp-test-funcs.el index 79a25511fad..e3fc0f26b58 100644 --- a/test/src/comp-test-funcs.el +++ b/test/src/comp-test-funcs.el @@ -235,6 +235,9 @@ (t (+ (comp-tests-fib-f (- n 1)) (comp-tests-fib-f (- n 2)))))) +(defmacro comp-tests-macro-m (x) + x) + ;;;;;;;;;;;;;;;;;;;; ;; Tromey's tests ;; ;;;;;;;;;;;;;;;;;;;; diff --git a/test/src/comp-tests.el b/test/src/comp-tests.el index 6eada52541f..9e0ca196871 100644 --- a/test/src/comp-tests.el +++ b/test/src/comp-tests.el @@ -274,6 +274,10 @@ (ert-deftest comp-tests-recursive () (should (= (comp-tests-fib-f 10) 55))) +(ert-deftest comp-tests-macro () + "Just check we can define macros" + (should (macrop (symbol-function 'comp-tests-macro-m)))) + ;;;;;;;;;;;;;;;;;;;; ;; Tromey's tests ;; ;;;;;;;;;;;;;;;;;;;;