summaryrefslogtreecommitdiff
path: root/test/lisp/emacs-lisp/cl-lib-tests.el
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2021-12-02 17:53:58 +0800
committerPo Lu <luangruo@yahoo.com>2021-12-02 17:53:58 +0800
commit2f6b519eaeb3be4ee6a912b40a21686be12d4d88 (patch)
treed835634ef08ebdf0e7900a8322060d511eb56481 /test/lisp/emacs-lisp/cl-lib-tests.el
parent78a3933b62c1c83a6a4d54c9bc65faf069aa83dc (diff)
parent3f98188b864fb4f16a7c2878a96c880ec55452dd (diff)
downloademacs-2f6b519eaeb3be4ee6a912b40a21686be12d4d88.tar.gz
emacs-2f6b519eaeb3be4ee6a912b40a21686be12d4d88.tar.bz2
emacs-2f6b519eaeb3be4ee6a912b40a21686be12d4d88.zip
Merge remote-tracking branch 'origin/master' into feature/pgtk
Diffstat (limited to 'test/lisp/emacs-lisp/cl-lib-tests.el')
-rw-r--r--test/lisp/emacs-lisp/cl-lib-tests.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/lisp/emacs-lisp/cl-lib-tests.el b/test/lisp/emacs-lisp/cl-lib-tests.el
index 854e371b32f..a0facc81dbe 100644
--- a/test/lisp/emacs-lisp/cl-lib-tests.el
+++ b/test/lisp/emacs-lisp/cl-lib-tests.el
@@ -551,4 +551,9 @@
(should cl-old-struct-compat-mode)
(cl-old-struct-compat-mode (if saved 1 -1))))
+(ert-deftest cl-constantly ()
+ (should (equal (mapcar (cl-constantly 3) '(a b c d))
+ '(3 3 3 3))))
+
+
;;; cl-lib-tests.el ends here