diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/automated/help-fns.el | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test/automated/help-fns.el b/test/automated/help-fns.el index ba87593f420..4815ac68257 100644 --- a/test/automated/help-fns.el +++ b/test/automated/help-fns.el | |||
| @@ -34,4 +34,27 @@ | |||
| 34 | (goto-char (point-min)) | 34 | (goto-char (point-min)) |
| 35 | (should (search-forward "autoloaded Lisp macro" (line-end-position))))) | 35 | (should (search-forward "autoloaded Lisp macro" (line-end-position))))) |
| 36 | 36 | ||
| 37 | (defun abc\\\[universal-argument\]b\`c\'d\\e\"f (x) | ||
| 38 | "A function with a funny name. | ||
| 39 | |||
| 40 | \(fn XYYZZY)" | ||
| 41 | x) | ||
| 42 | |||
| 43 | (defun defgh\\\[universal-argument\]b\`c\'d\\e\"f (x) | ||
| 44 | "Another function with a funny name." | ||
| 45 | x) | ||
| 46 | |||
| 47 | (ert-deftest help-fns-test-funny-names () | ||
| 48 | "Test for help with functions with funny names." | ||
| 49 | (describe-function 'abc\\\[universal-argument\]b\`c\'d\\e\"f) | ||
| 50 | (with-current-buffer "*Help*" | ||
| 51 | (goto-char (point-min)) | ||
| 52 | (should (search-forward | ||
| 53 | "(abc\\\\\\[universal-argument\\]b\\`c\\'d\\\\e\\\"f XYYZZY)"))) | ||
| 54 | (describe-function 'defgh\\\[universal-argument\]b\`c\'d\\e\"f) | ||
| 55 | (with-current-buffer "*Help*" | ||
| 56 | (goto-char (point-min)) | ||
| 57 | (should (search-forward | ||
| 58 | "(defgh\\\\\\[universal-argument\\]b\\`c\\'d\\\\e\\\"f X)")))) | ||
| 59 | |||
| 37 | ;;; help-fns.el ends here | 60 | ;;; help-fns.el ends here |