aboutsummaryrefslogtreecommitdiffstats
path: root/test/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'test/lisp')
-rw-r--r--test/lisp/progmodes/f90-tests.el20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/lisp/progmodes/f90-tests.el b/test/lisp/progmodes/f90-tests.el
index 540082c7174..b6fbac351dc 100644
--- a/test/lisp/progmodes/f90-tests.el
+++ b/test/lisp/progmodes/f90-tests.el
@@ -277,4 +277,24 @@ end program prog")
277 (forward-line -2) 277 (forward-line -2)
278 (should (= 2 (current-indentation))))) ; type is 278 (should (= 2 (current-indentation))))) ; type is
279 279
280(ert-deftest f90-test-bug38415 ()
281 "Test for https://debbugs.gnu.org/38415 ."
282 (with-temp-buffer
283 (f90-mode)
284 (setq-local f90-smart-end 'no-blink)
285 (insert "module function foo(x)
286real :: x
287end")
288 (f90-indent-line)
289 (should (equal " function foo"
290 (buffer-substring (point) (line-end-position))))
291 (goto-char (point-max))
292 (insert "\nmodule subroutine bar(x)
293real :: x
294end")
295 (f90-indent-line)
296 (should (equal " subroutine bar"
297 (buffer-substring (point) (line-end-position))))))
298
299
280;;; f90-tests.el ends here 300;;; f90-tests.el ends here