Complete yesterday's commit for cl-print.el
I.e. commit the needed change to the test suite. * test/lisp/emacs-lisp/cl-print-tests.el (cl-print-tests-ellipsis-string): Bind cl-print-string-length. Only bind print-length and print-level where they are specifically needed.
This commit is contained in:
parent
63ddbcc022
commit
c55e22c418
1 changed files with 10 additions and 8 deletions
|
@ -60,18 +60,20 @@
|
|||
|
||||
(ert-deftest cl-print-tests-ellipsis-string ()
|
||||
"Ellipsis expansion works in strings."
|
||||
(let ((print-length 4)
|
||||
(print-level 3))
|
||||
(let ((cl-print-string-length 4))
|
||||
(cl-print-tests-check-ellipsis-expansion
|
||||
"abcdefg" "\"abcd...\"" "efg")
|
||||
(cl-print-tests-check-ellipsis-expansion
|
||||
"abcdefghijk" "\"abcd...\"" "efgh...")
|
||||
(cl-print-tests-check-ellipsis-expansion
|
||||
'(1 (2 (3 #("abcde" 0 5 (test t)))))
|
||||
"(1 (2 (3 ...)))" "#(\"abcd...\" 0 5 (test t))")
|
||||
(cl-print-tests-check-ellipsis-expansion
|
||||
#("abcd" 0 1 (bold t) 1 2 (invisible t) 3 4 (italic t))
|
||||
"#(\"abcd\" 0 1 (bold t) ...)" "1 2 (invisible t) ...")))
|
||||
(let ((print-length 4)
|
||||
(print-level 3))
|
||||
(cl-print-tests-check-ellipsis-expansion
|
||||
'(1 (2 (3 #("abcde" 0 5 (test t)))))
|
||||
"(1 (2 (3 ...)))" "#(\"abcd...\" 0 5 (test t))"))
|
||||
(let ((print-length 4))
|
||||
(cl-print-tests-check-ellipsis-expansion
|
||||
#("abcd" 0 1 (bold t) 1 2 (invisible t) 3 4 (italic t))
|
||||
"#(\"abcd\" 0 1 (bold t) ...)" "1 2 (invisible t) ..."))))
|
||||
|
||||
(ert-deftest cl-print-tests-ellipsis-struct ()
|
||||
"Ellipsis expansion works in structures."
|
||||
|
|
Loading…
Add table
Reference in a new issue