emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 1f5b4ed: * test/lisp/emacs-lisp/cl-lib-tests.el (cl


From: Stefan Monnier
Subject: [Emacs-diffs] master 1f5b4ed: * test/lisp/emacs-lisp/cl-lib-tests.el (cl-lib-symbol-macrolet): New test.
Date: Fri, 31 Mar 2017 10:05:30 -0400 (EDT)

branch: master
commit 1f5b4ed62837817037ddc8e1f2d17782c6efc8e5
Author: Stefan Monnier <address@hidden>
Commit: Stefan Monnier <address@hidden>

    * test/lisp/emacs-lisp/cl-lib-tests.el (cl-lib-symbol-macrolet): New test.
---
 test/lisp/emacs-lisp/cl-lib-tests.el | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/test/lisp/emacs-lisp/cl-lib-tests.el 
b/test/lisp/emacs-lisp/cl-lib-tests.el
index 5edc3e7..b594620 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]