aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAndrea Corallo2019-11-04 23:13:23 +0100
committerAndrea Corallo2020-01-01 11:38:01 +0100
commit9ee6b685a338cd06d4b053e39f3e2da505d20612 (patch)
treeffad427fa43837e544bd34e0b6bd87ce1d1d9c39 /test
parent809bd5aa34727151bdf40230e2fbc3151760466b (diff)
downloademacs-9ee6b685a338cd06d4b053e39f3e2da505d20612.tar.gz
emacs-9ee6b685a338cd06d4b053e39f3e2da505d20612.zip
add test for macro definition
Diffstat (limited to 'test')
-rw-r--r--test/src/comp-test-funcs.el3
-rw-r--r--test/src/comp-tests.el4
2 files changed, 7 insertions, 0 deletions
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 @@
235 (t (+ (comp-tests-fib-f (- n 1)) 235 (t (+ (comp-tests-fib-f (- n 1))
236 (comp-tests-fib-f (- n 2)))))) 236 (comp-tests-fib-f (- n 2))))))
237 237
238(defmacro comp-tests-macro-m (x)
239 x)
240
238;;;;;;;;;;;;;;;;;;;; 241;;;;;;;;;;;;;;;;;;;;
239;; Tromey's tests ;; 242;; Tromey's tests ;;
240;;;;;;;;;;;;;;;;;;;; 243;;;;;;;;;;;;;;;;;;;;
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 @@
274(ert-deftest comp-tests-recursive () 274(ert-deftest comp-tests-recursive ()
275 (should (= (comp-tests-fib-f 10) 55))) 275 (should (= (comp-tests-fib-f 10) 55)))
276 276
277(ert-deftest comp-tests-macro ()
278 "Just check we can define macros"
279 (should (macrop (symbol-function 'comp-tests-macro-m))))
280
277;;;;;;;;;;;;;;;;;;;; 281;;;;;;;;;;;;;;;;;;;;
278;; Tromey's tests ;; 282;; Tromey's tests ;;
279;;;;;;;;;;;;;;;;;;;; 283;;;;;;;;;;;;;;;;;;;;