]> git.eshelyaron.com Git - emacs.git/commitdiff
Move a test from subr-tests to print-tests
authorLars Ingebrigtsen <larsi@gnus.org>
Sat, 30 Jul 2022 10:45:36 +0000 (12:45 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 30 Jul 2022 10:45:36 +0000 (12:45 +0200)
test/lisp/subr-tests.el
test/src/print-tests.el

index be613ce7595b46ba6663098c55b66fbe3a60222c..08f08f046650e743c3fbf69b099e139ee7b41af3 100644 (file)
@@ -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
index 91187d9f45c6d773d852388903d400035e36ed9b..37ee21af6bae281811562b02c0d919886752fd3f 100644 (file)
@@ -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