Move a test from subr-tests to print-tests
This commit is contained in:
parent
cd3ce6e541
commit
2539039335
2 changed files with 10 additions and 10 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue