aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorGlenn Morris2020-02-14 11:10:55 -0800
committerGlenn Morris2020-02-14 11:10:55 -0800
commita9e7ae39cec00eaeff58c15a885c08ffbddbcab4 (patch)
treef4718acbc0c2b31f2feb15dd25b23c11248c90fa /test
parent2e81e5733db3b8b88a246d08671b828654cd6950 (diff)
downloademacs-a9e7ae39cec00eaeff58c15a885c08ffbddbcab4.tar.gz
emacs-a9e7ae39cec00eaeff58c15a885c08ffbddbcab4.zip
Remove lread tests for a feature that was deleted
* test/src/lread-tests.el (lread-tests--old-style-backquotes) (lread-tests--force-new-style-backquotes): Remove.
Diffstat (limited to 'test')
-rw-r--r--test/src/lread-tests.el16
1 files changed, 0 insertions, 16 deletions
diff --git a/test/src/lread-tests.el b/test/src/lread-tests.el
index 1426b0145e0..6efd8bed302 100644
--- a/test/src/lread-tests.el
+++ b/test/src/lread-tests.el
@@ -157,22 +157,6 @@ literals (Bug#20852)."
157 (load "somelib" nil t) 157 (load "somelib" nil t)
158 (should (string-suffix-p "/somelib.el" (caar load-history))))) 158 (should (string-suffix-p "/somelib.el" (caar load-history)))))
159 159
160(ert-deftest lread-tests--old-style-backquotes ()
161 "Check that loading doesn't accept old-style backquotes."
162 (lread-tests--with-temp-file file-name
163 (write-region "(` (a b))" nil file-name)
164 (let ((data (should-error (load file-name nil :nomessage :nosuffix))))
165 (should (equal (cdr data)
166 (list (concat (format-message "Loading `%s': " file-name)
167 "old-style backquotes detected!")))))))
168
169(ert-deftest lread-tests--force-new-style-backquotes ()
170 (let ((data (should-error (read "(` (a b))"))))
171 (should (equal (cdr data) '("Old-style backquotes detected!"))))
172 (should (equal (let ((force-new-style-backquotes t))
173 (read "(` (a b))"))
174 '(`(a b)))))
175
176(ert-deftest lread-lread--substitute-object-in-subtree () 160(ert-deftest lread-lread--substitute-object-in-subtree ()
177 (let ((x (cons 0 1))) 161 (let ((x (cons 0 1)))
178 (setcar x x) 162 (setcar x x)