summaryrefslogtreecommitdiff
path: root/test/lisp/emacs-lisp/cl-lib-tests.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2017-03-31 10:05:12 -0400
committerStefan Monnier <monnier@iro.umontreal.ca>2017-03-31 10:05:12 -0400
commit1f5b4ed62837817037ddc8e1f2d17782c6efc8e5 (patch)
treed33bde59fd89492659136ac8c39298a644bc0a66 /test/lisp/emacs-lisp/cl-lib-tests.el
parent1da9a207669a3cf5d27ac1dd61543c1492e05360 (diff)
downloademacs-1f5b4ed62837817037ddc8e1f2d17782c6efc8e5.tar.gz
* test/lisp/emacs-lisp/cl-lib-tests.el (cl-lib-symbol-macrolet): New test.
Diffstat (limited to 'test/lisp/emacs-lisp/cl-lib-tests.el')
-rw-r--r--test/lisp/emacs-lisp/cl-lib-tests.el9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/lisp/emacs-lisp/cl-lib-tests.el b/test/lisp/emacs-lisp/cl-lib-tests.el
index 5edc3e72bf2..b5946208f10 100644
--- a/test/lisp/emacs-lisp/cl-lib-tests.el
+++ b/test/lisp/emacs-lisp/cl-lib-tests.el
@@ -493,4 +493,13 @@
(should (cl-typep '* 'cl-lib-test-type))
(should-not (cl-typep 1 'cl-lib-test-type)))
+(ert-deftest cl-lib-symbol-macrolet ()
+ (should (equal (cl-flet ((f (x) (+ x 5)))
+ (let ((x 5))
+ (f (+ x 6))))
+ (cl-symbol-macrolet ((f (+ x 6)))
+ (cl-flet ((f (x) (+ x 5)))
+ (let ((x 5))
+ (f f)))))))
+
;;; cl-lib.el ends here