[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 7d7e8a9 2/2: Add a test for bug#50320 in sh-script
From: |
Lars Ingebrigtsen |
Subject: |
master 7d7e8a9 2/2: Add a test for bug#50320 in sh-script |
Date: |
Thu, 2 Sep 2021 02:45:14 -0400 (EDT) |
branch: master
commit 7d7e8a9c15cd509e731686f8e63fc1d574f4b5c0
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
Add a test for bug#50320 in sh-script
---
test/lisp/progmodes/sh-script-tests.el | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/test/lisp/progmodes/sh-script-tests.el
b/test/lisp/progmodes/sh-script-tests.el
index 5bdce62..c21010c 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