aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPo Lu2022-01-04 05:26:40 +0000
committerPo Lu2022-01-04 05:26:40 +0000
commit3a7a88d2f896b42e3bf43f7e1f5c166e2c743d73 (patch)
tree3f07a792e7ed096917cea849ca43e52f8d568359
parentf3481f21f710ab41980623728917704bb25b3ae5 (diff)
parent565fd09d9b92167c3cafd1b49c5e69e3c0e88e25 (diff)
downloademacs-3a7a88d2f896b42e3bf43f7e1f5c166e2c743d73.tar.gz
emacs-3a7a88d2f896b42e3bf43f7e1f5c166e2c743d73.zip
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs
-rw-r--r--test/src/doc-tests.el43
1 files changed, 43 insertions, 0 deletions
diff --git a/test/src/doc-tests.el b/test/src/doc-tests.el
new file mode 100644
index 00000000000..8dabba90352
--- /dev/null
+++ b/test/src/doc-tests.el
@@ -0,0 +1,43 @@
1;;; doc-tests.el --- tests for doc.c functions -*- lexical-binding: t -*-
2
3;; Copyright (C) 2022 Free Software Foundation, Inc.
4
5;; This file is part of GNU Emacs.
6
7;; GNU Emacs is free software: you can redistribute it and/or modify
8;; it under the terms of the GNU General Public License as published by
9;; the Free Software Foundation, either version 3 of the License, or
10;; (at your option) any later version.
11
12;; GNU Emacs is distributed in the hope that it will be useful,
13;; but WITHOUT ANY WARRANTY; without even the implied warranty of
14;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15;; GNU General Public License for more details.
16
17;; You should have received a copy of the GNU General Public License
18;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
19
20;;; Code:
21
22(require 'ert)
23
24(ert-deftest doc-tests-documentation/c-primitive ()
25 (should (stringp (documentation 'defalias))))
26
27(ert-deftest doc-tests-documentation/preloaded ()
28 (should (stringp (documentation 'defun))))
29
30(ert-deftest doc-tests-documentation/autoloaded-macro ()
31 (skip-unless noninteractive)
32 (should (autoloadp (symbol-function 'rx)))
33 (should (stringp (documentation 'rx)))) ; See Bug#52969.
34
35(ert-deftest doc-tests-documentation/autoloaded-defun ()
36 (skip-unless noninteractive)
37 (should (autoloadp (symbol-function 'tetris)))
38 (should (stringp (documentation 'tetris)))) ; See Bug#52969.
39
40(ert-deftest doc-tests-quoting-style ()
41 (should (memq (text-quoting-style) '(grave straight curve))))
42
43;;; doc-tests.el ends here