From: Lars Ingebrigtsen Date: Thu, 2 Sep 2021 06:43:48 +0000 (+0200) Subject: Add a test for bug#50320 in sh-script X-Git-Tag: emacs-28.0.90~1229 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=7d7e8a9c15cd509e731686f8e63fc1d574f4b5c0;p=emacs.git Add a test for bug#50320 in sh-script --- diff --git a/test/lisp/progmodes/sh-script-tests.el b/test/lisp/progmodes/sh-script-tests.el index 5bdce6260ae..c21010c8b43 100644 --- a/test/lisp/progmodes/sh-script-tests.el +++ b/test/lisp/progmodes/sh-script-tests.el @@ -37,4 +37,15 @@ "relative-path/to/configure --prefix=$prefix\\ --with-x")))) +(ert-deftest test-basic-sh-indentation () + (with-temp-buffer + (insert "myecho () {\necho foo\n}\n") + (shell-script-mode) + (indent-region (point-min) (point-max)) + (should (equal (buffer-string) + "myecho () { + echo foo +} +")))) + ;;; sh-script-tests.el ends here