diff options
Diffstat (limited to 'test/src')
| -rw-r--r-- | test/src/lread-tests.el | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/src/lread-tests.el b/test/src/lread-tests.el index 685ea682e29..98cbb6a301d 100644 --- a/test/src/lread-tests.el +++ b/test/src/lread-tests.el | |||
| @@ -155,4 +155,13 @@ literals (Bug#20852)." | |||
| 155 | (load "somelib" nil t) | 155 | (load "somelib" nil t) |
| 156 | (should (string-suffix-p "/somelib.el" (caar load-history))))) | 156 | (should (string-suffix-p "/somelib.el" (caar load-history))))) |
| 157 | 157 | ||
| 158 | (ert-deftest lread-tests--old-style-backquotes () | ||
| 159 | "Check that loading warns about old-style backquotes." | ||
| 160 | (lread-tests--with-temp-file file-name | ||
| 161 | (write-region "(` (a b))" nil file-name) | ||
| 162 | (should (equal (load file-name nil :nomessage :nosuffix) t)) | ||
| 163 | (should (equal (lread-tests--last-message) | ||
| 164 | (concat (format-message "Loading `%s': " file-name) | ||
| 165 | "old-style backquotes detected!"))))) | ||
| 166 | |||
| 158 | ;;; lread-tests.el ends here | 167 | ;;; lread-tests.el ends here |