]> git.eshelyaron.com Git - emacs.git/commitdiff
Expand internal--format-docstring-line test
authorStefan Kangas <stefan@marxist.se>
Sat, 2 Oct 2021 14:20:06 +0000 (16:20 +0200)
committerStefan Kangas <stefan@marxist.se>
Sat, 2 Oct 2021 14:20:06 +0000 (16:20 +0200)
* test/lisp/subr-tests.el (subr-test-internal--format-docstring-line):
Check for error on newline.

test/lisp/subr-tests.el

index ed9a3d01498bd72377255f4ee4b5278c4af61a24..5c4e0b9de93d80cf50f535184ca270ed6ce5613e 100644 (file)
@@ -777,7 +777,8 @@ some of the ways to customize it; it corresponds to GNU Emacs version 28.1."))
             "Emacs is the advanced, extensible, customizable,
 self-documenting editor.  This manual describes how to edit
 with Emacs and some of the ways to customize it; it
-corresponds to GNU Emacs version 28.1.")))
+corresponds to GNU Emacs version 28.1."))
+  (should-error (internal--format-docstring-line "foo\nbar")))
 
 (ert-deftest test-ensure-list ()
   (should (equal (ensure-list nil) nil))