]> git.eshelyaron.com Git - emacs.git/commitdiff
add test for macro definition
authorAndrea Corallo <akrl@sdf.org>
Mon, 4 Nov 2019 22:13:23 +0000 (23:13 +0100)
committerAndrea Corallo <akrl@sdf.org>
Wed, 1 Jan 2020 10:38:01 +0000 (11:38 +0100)
test/src/comp-test-funcs.el
test/src/comp-tests.el

index 79a25511fad8e2c0886cb574b0f3b3cf4aa6845e..e3fc0f26b581b0945dfdf2ce49a6c524eb9976ba 100644 (file)
        (t (+ (comp-tests-fib-f (- n 1))
              (comp-tests-fib-f (- n 2))))))
 
+(defmacro comp-tests-macro-m (x)
+  x)
+
 ;;;;;;;;;;;;;;;;;;;;
 ;; Tromey's tests ;;
 ;;;;;;;;;;;;;;;;;;;;
index 6eada52541f5bce3d181a5878bd23695f0d31a03..9e0ca1968711fb11a28b7593cae15a1b903af0ed 100644 (file)
 (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 ;;
 ;;;;;;;;;;;;;;;;;;;;