diff options
| author | Stefan Monnier | 2017-03-31 10:05:12 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2017-03-31 10:05:12 -0400 |
| commit | 1f5b4ed62837817037ddc8e1f2d17782c6efc8e5 (patch) | |
| tree | d33bde59fd89492659136ac8c39298a644bc0a66 | |
| parent | 1da9a207669a3cf5d27ac1dd61543c1492e05360 (diff) | |
| download | emacs-1f5b4ed62837817037ddc8e1f2d17782c6efc8e5.tar.gz emacs-1f5b4ed62837817037ddc8e1f2d17782c6efc8e5.zip | |
* test/lisp/emacs-lisp/cl-lib-tests.el (cl-lib-symbol-macrolet): New test.
| -rw-r--r-- | test/lisp/emacs-lisp/cl-lib-tests.el | 9 |
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 @@ | |||
| 493 | (should (cl-typep '* 'cl-lib-test-type)) | 493 | (should (cl-typep '* 'cl-lib-test-type)) |
| 494 | (should-not (cl-typep 1 'cl-lib-test-type))) | 494 | (should-not (cl-typep 1 'cl-lib-test-type))) |
| 495 | 495 | ||
| 496 | (ert-deftest cl-lib-symbol-macrolet () | ||
| 497 | (should (equal (cl-flet ((f (x) (+ x 5))) | ||
| 498 | (let ((x 5)) | ||
| 499 | (f (+ x 6)))) | ||
| 500 | (cl-symbol-macrolet ((f (+ x 6))) | ||
| 501 | (cl-flet ((f (x) (+ x 5))) | ||
| 502 | (let ((x 5)) | ||
| 503 | (f f))))))) | ||
| 504 | |||
| 496 | ;;; cl-lib.el ends here | 505 | ;;; cl-lib.el ends here |