; * test/src/editfns-tests.el (editfns-tests-styled-print): New test.

This commit is contained in:
Eli Zaretskii 2025-02-04 14:18:38 +02:00
parent 164da071e0
commit 40e38a681d

View file

@ -534,4 +534,15 @@
'utf-8 nil (current-buffer))
(should (null (sanity-check-change-functions-errors))))))
(ert-deftest editfns-tests-styled-print ()
"Test bug#75754."
:expected-result :failed
(let* ((print-unreadable-function
(lambda (&rest _args)
(garbage-collect)
(make-string 100 t)))
(str "\"[1] ĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀĀ\""))
(should (string= (format "%S" (format "%S %S" [1] (symbol-function '+)))
str))))
;;; editfns-tests.el ends here