Convert manual indent test for lisp-mode into unit test

* test/manual/indent/lisp.lisp: Delete file.
* test/lisp/emacs-lisp/lisp-mode-tests.el (lisp-indent-defun):
New unit test based on deleted file.
This commit is contained in:
Stefan Kangas 2020-09-21 16:23:24 +02:00
parent f3e2d3418a
commit 31cb935cd7
2 changed files with 12 additions and 5 deletions

View file

@ -294,6 +294,18 @@ Expected initialization file: `%s'\"
(insert "\"\n")
(lisp-indent-region (point-min) (point-max))))
(ert-deftest lisp-indent-defun ()
(with-temp-buffer
(lisp-mode)
(let ((orig "(defun x ()
(print (quote ( thingy great
stuff)))
(print (quote (thingy great
stuff))))"))
(insert orig)
(indent-region (point-min) (point-max))
(should (equal (buffer-string) orig)))))
;;; Fontification

View file

@ -1,5 +0,0 @@
(defun x ()
(print (quote ( thingy great
stuff)))
(print (quote (thingy great
stuff))))