From: Lars Ingebrigtsen Date: Sat, 30 Jul 2022 10:45:36 +0000 (+0200) Subject: Move a test from subr-tests to print-tests X-Git-Tag: emacs-29.0.90~1447^2~645 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2539039335709ccf64f4792882a0e74a0715f1fa;p=emacs.git Move a test from subr-tests to print-tests --- diff --git a/test/lisp/subr-tests.el b/test/lisp/subr-tests.el index be613ce7595..08f08f04665 100644 --- a/test/lisp/subr-tests.el +++ b/test/lisp/subr-tests.el @@ -1126,15 +1126,5 @@ final or penultimate step during initialization.")) (should (equal (butlast l n) (subr-tests--butlast-ref l n)))))) -(ert-deftest test-print-unreadable-function-buffer () - (with-temp-buffer - (let ((current (current-buffer)) - callback-buffer) - (let ((print-unreadable-function - (lambda (_object _escape) - (setq callback-buffer (current-buffer))))) - (prin1-to-string (make-marker))) - (should (eq current callback-buffer))))) - (provide 'subr-tests) ;;; subr-tests.el ends here diff --git a/test/src/print-tests.el b/test/src/print-tests.el index 91187d9f45c..37ee21af6ba 100644 --- a/test/src/print-tests.el +++ b/test/src/print-tests.el @@ -529,5 +529,15 @@ otherwise, use a different charset." (should (equal (% (- (length numbers) loopback-index) loop) 0))))))))))) +(ert-deftest test-print-unreadable-function-buffer () + (with-temp-buffer + (let ((current (current-buffer)) + callback-buffer) + (let ((print-unreadable-function + (lambda (_object _escape) + (setq callback-buffer (current-buffer))))) + (prin1-to-string (make-marker))) + (should (eq current callback-buffer))))) + (provide 'print-tests) ;;; print-tests.el ends here