diff options
author | Stefan Kangas <stefankangas@gmail.com> | 2022-11-13 15:34:02 +0100 |
---|---|---|
committer | Stefan Kangas <stefankangas@gmail.com> | 2022-11-13 15:34:02 +0100 |
commit | 90a7dee79d0b99131ba97d05acc4bf8c9294fc15 (patch) | |
tree | b438bb3fd37ad0fa38ec1160d037564026da2895 | |
parent | 73c03d64cec9869951ff0d52571671429032c7ca (diff) | |
download | emacs-90a7dee79d0b99131ba97d05acc4bf8c9294fc15.tar.gz |
New test for execute-extended-command helper defun
* test/lisp/simple-tests.el
(simple-execute-extended-command--shorter): New test.
-rw-r--r-- | test/lisp/simple-tests.el | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/lisp/simple-tests.el b/test/lisp/simple-tests.el index 97f425f6f48..acb417b80b8 100644 --- a/test/lisp/simple-tests.el +++ b/test/lisp/simple-tests.el @@ -73,6 +73,18 @@ (should (= (count-lines (point) (point)) 0)))) +;;; `execute-extended-command' + +(ert-deftest simple-execute-extended-command--shorter () + ;; This test can be flaky with completion frameworks other than the + ;; default, so just skip it in interactive sessions. + (skip-unless noninteractive) + (should (equal (execute-extended-command--shorter + "display-line-numbers-mode" + "display-line") + "di-n"))) + + ;;; `transpose-sexps' (defmacro simple-test--transpositions (&rest body) (declare (indent 0) |