aboutsummaryrefslogtreecommitdiffstats
path: root/test/src
diff options
context:
space:
mode:
authorEric S. Raymond2026-02-25 11:45:38 -0500
committerEric S. Raymond2026-02-25 11:47:16 -0500
commit90af3295c7fa705381bf680ec8559503ea875683 (patch)
treeef283e9da5726a11b85b5a798b96c25d2a2df09f /test/src
parent6eb170b007a4ad63fe5666033df191f52d480739 (diff)
downloademacs-90af3295c7fa705381bf680ec8559503ea875683.tar.gz
emacs-90af3295c7fa705381bf680ec8559503ea875683.zip
Crrections to tedt coverrage extensuion after bootstrap build.
Files: data-tests.el, editfns-tests.el.
Diffstat (limited to 'test/src')
-rw-r--r--test/src/data-tests.el22
-rw-r--r--test/src/editfns-tests.el3
2 files changed, 13 insertions, 12 deletions
diff --git a/test/src/data-tests.el b/test/src/data-tests.el
index b32af958c69..51fa43c91db 100644
--- a/test/src/data-tests.el
+++ b/test/src/data-tests.el
@@ -61,15 +61,15 @@ this is exactly representable and is greater than
61 (should-not (bool-vector-subsetp b a)) 61 (should-not (bool-vector-subsetp b a))
62 (should (bool-vector-subsetp c b)) 62 (should (bool-vector-subsetp c b))
63 (should-error (bool-vector-subsetp a (bool-vector t nil)))) 63 (should-error (bool-vector-subsetp a (bool-vector t nil))))
64 (let* ((interp (lambda (x) x)) 64 (let* ((interp (eval '(lambda (x) x)))
65 (bytec (byte-compile interp))) 65 (bytec (byte-compile (eval '(lambda (x) x)))))
66 (should (closurep interp)) 66 (should (closurep interp))
67 (should-not (closurep #'car)) 67 (should-not (closurep #'car))
68 (should (interpreted-function-p interp)) 68 (should (interpreted-function-p interp))
69 (should-not (interpreted-function-p bytec)) 69 (should-not (interpreted-function-p bytec))
70 (should-not (interpreted-function-p #'car))) 70 (should-not (interpreted-function-p #'car)))
71 (should (subrp #'car)) 71 (should (subrp (symbol-function 'car)))
72 (should (subrp #'+)) 72 (should (subrp (symbol-function '+)))
73 (should-not (subrp (lambda (x) x))) 73 (should-not (subrp (lambda (x) x)))
74 (should-not (subrp 'car)) 74 (should-not (subrp 'car))
75 (should (special-variable-p 'data-tests--special-var)) 75 (should (special-variable-p 'data-tests--special-var))
@@ -77,13 +77,13 @@ this is exactly representable and is greater than
77 (should-not (special-variable-p 'data-tests--not-special))) 77 (should-not (special-variable-p 'data-tests--not-special)))
78 78
79(ert-deftest data-tests-subr-introspection () 79(ert-deftest data-tests-subr-introspection ()
80 (should (equal (subr-arity #'car) '(1 . 1))) 80 (should (equal (subr-arity (symbol-function 'car)) '(1 . 1)))
81 (should (equal (subr-arity #'cons) '(2 . 2))) 81 (should (equal (subr-arity (symbol-function 'cons)) '(2 . 2)))
82 (should (equal (subr-arity #'list) '(0 . many))) 82 (should (equal (subr-arity (symbol-function 'list)) '(0 . many)))
83 (should (equal (subr-arity #'if) '(2 . unevalled))) 83 (should (equal (subr-arity (symbol-function 'if)) '(2 . unevalled)))
84 (should (equal (subr-name #'car) "car")) 84 (should (equal (subr-name (symbol-function 'car)) "car"))
85 (should (equal (subr-name #'cons) "cons")) 85 (should (equal (subr-name (symbol-function 'cons)) "cons"))
86 (should (equal (subr-name #'if) "if"))) 86 (should (equal (subr-name (symbol-function 'if)) "if")))
87 87
88(ert-deftest data-tests-= () 88(ert-deftest data-tests-= ()
89 (should-error (=)) 89 (should-error (=))
diff --git a/test/src/editfns-tests.el b/test/src/editfns-tests.el
index 91dc8750935..156e8bc1cd7 100644
--- a/test/src/editfns-tests.el
+++ b/test/src/editfns-tests.el
@@ -970,7 +970,8 @@ sufficiently large to avoid truncation."
970 (should (equal (buffer-string) "AAA"))) 970 (should (equal (buffer-string) "AAA")))
971 (with-temp-buffer 971 (with-temp-buffer
972 (insert-byte 200 1) 972 (insert-byte 200 1)
973 (should (= (aref (buffer-string) 0) 200))) 973 (should (= (aref (buffer-string) 0)
974 (unibyte-char-to-multibyte 200))))
974 (should-error (with-temp-buffer (insert-byte 256 1)))) 975 (should-error (with-temp-buffer (insert-byte 256 1))))
975 976
976(ert-deftest editfns-tests--insert-buffer-substring () 977(ert-deftest editfns-tests--insert-buffer-substring ()