From 2539039335709ccf64f4792882a0e74a0715f1fa Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Sat, 30 Jul 2022 12:45:36 +0200 Subject: [PATCH] Move a test from subr-tests to print-tests --- test/lisp/subr-tests.el | 10 ---------- test/src/print-tests.el | 10 ++++++++++ 2 files changed, 10 insertions(+), 10 deletions(-) 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 -- 2.39.2