mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 04:10:54 -08:00
Add a test for print-unreadable-function
* test/lisp/subr-tests.el (test-print-unreadable-function): Add failing test (bug#56773).
This commit is contained in:
parent
592ae7ffe2
commit
a1384cd65d
1 changed files with 10 additions and 1 deletions
|
|
@ -1026,7 +1026,16 @@ final or penultimate step during initialization."))
|
|||
|
||||
(ert-deftest test-readablep ()
|
||||
(should (readablep "foo"))
|
||||
(should-not (readablep (list (make-marker)))))
|
||||
(should-not (readablep (list (make-marker))))
|
||||
(should-not (readablep (make-marker))))
|
||||
|
||||
(ert-deftest test-print-unreadable-function ()
|
||||
:expected-result :failed
|
||||
;; Check that problem with unwinding properly is fixed (bug#56773).
|
||||
(with-temp-buffer
|
||||
(let ((buf (current-buffer)))
|
||||
(readablep (make-marker))
|
||||
(should (eq buf (current-buffer))))))
|
||||
|
||||
(ert-deftest test-string-lines ()
|
||||
(should (equal (string-lines "") '("")))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue