diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/lisp/subr-tests.el | 10 | ||||
| -rw-r--r-- | test/src/print-tests.el | 1 |
2 files changed, 10 insertions, 1 deletions
diff --git a/test/lisp/subr-tests.el b/test/lisp/subr-tests.el index 20f81d1ddc5..1d85631a4b8 100644 --- a/test/lisp/subr-tests.el +++ b/test/lisp/subr-tests.el | |||
| @@ -1122,5 +1122,15 @@ final or penultimate step during initialization.")) | |||
| 1122 | (should (equal (butlast l n) | 1122 | (should (equal (butlast l n) |
| 1123 | (subr-tests--butlast-ref l n)))))) | 1123 | (subr-tests--butlast-ref l n)))))) |
| 1124 | 1124 | ||
| 1125 | (ert-deftest test-print-unreadable-function-buffer () | ||
| 1126 | (with-temp-buffer | ||
| 1127 | (let ((current (current-buffer)) | ||
| 1128 | callback-buffer) | ||
| 1129 | (let ((print-unreadable-function | ||
| 1130 | (lambda (_object _escape) | ||
| 1131 | (setq callback-buffer (current-buffer))))) | ||
| 1132 | (prin1-to-string (make-marker))) | ||
| 1133 | (should (eq current callback-buffer))))) | ||
| 1134 | |||
| 1125 | (provide 'subr-tests) | 1135 | (provide 'subr-tests) |
| 1126 | ;;; subr-tests.el ends here | 1136 | ;;; subr-tests.el ends here |
diff --git a/test/src/print-tests.el b/test/src/print-tests.el index f818b4d4715..91187d9f45c 100644 --- a/test/src/print-tests.el +++ b/test/src/print-tests.el | |||
| @@ -529,6 +529,5 @@ otherwise, use a different charset." | |||
| 529 | (should (equal (% (- (length numbers) loopback-index) loop) | 529 | (should (equal (% (- (length numbers) loopback-index) loop) |
| 530 | 0))))))))))) | 530 | 0))))))))))) |
| 531 | 531 | ||
| 532 | |||
| 533 | (provide 'print-tests) | 532 | (provide 'print-tests) |
| 534 | ;;; print-tests.el ends here | 533 | ;;; print-tests.el ends here |