diff options
Diffstat (limited to 'test/src')
| -rw-r--r-- | test/src/lread-tests.el | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/src/lread-tests.el b/test/src/lread-tests.el index e2d4eaa63c7..693c6c09bf3 100644 --- a/test/src/lread-tests.el +++ b/test/src/lread-tests.el | |||
| @@ -181,6 +181,14 @@ literals (Bug#20852)." | |||
| 181 | (list (concat (format-message "Loading `%s': " file-name) | 181 | (list (concat (format-message "Loading `%s': " file-name) |
| 182 | "old-style backquotes detected!"))))))) | 182 | "old-style backquotes detected!"))))))) |
| 183 | 183 | ||
| 184 | (ert-deftest lread-tests--force-new-style-backquotes () | ||
| 185 | (let ((data (should-error (read "(` (a b))")))) | ||
| 186 | (should (equal (cdr data) | ||
| 187 | '("Loading `nil': old-style backquotes detected!")))) | ||
| 188 | (should (equal (let ((force-new-style-backquotes t)) | ||
| 189 | (read "(` (a b))")) | ||
| 190 | '(`(a b))))) | ||
| 191 | |||
| 184 | (ert-deftest lread-lread--substitute-object-in-subtree () | 192 | (ert-deftest lread-lread--substitute-object-in-subtree () |
| 185 | (let ((x (cons 0 1))) | 193 | (let ((x (cons 0 1))) |
| 186 | (setcar x x) | 194 | (setcar x x) |