]> git.eshelyaron.com Git - emacs.git/commitdiff
* test/lisp/emacs-lisp/cl-lib-tests.el (cl-lib-symbol-macrolet): New test.
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 31 Mar 2017 14:05:12 +0000 (10:05 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 31 Mar 2017 14:05:12 +0000 (10:05 -0400)
test/lisp/emacs-lisp/cl-lib-tests.el

index 5edc3e72bf24f64f516585cd5aa518f3067ead24..b5946208f101b72e1c134d4d1b16b078fe7b059d 100644 (file)
   (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