test-org/string-width: Add tests for strings with prefix properties
This commit is contained in:
parent
3da1b2d240
commit
444d1c50ac
|
@ -65,7 +65,11 @@
|
|||
(should (= 4 (org-string-width
|
||||
#("123" 1 2 (display #("abc" 1 2 (invisible t)))))))
|
||||
;; Test `space' property in `display'.
|
||||
(should (= 2 (org-string-width #(" " 0 1 (display (space :width 2)))))))
|
||||
(should (= 2 (org-string-width #(" " 0 1 (display (space :width 2))))))
|
||||
;; Test `wrap-prefix' property.
|
||||
(should (= 2 (org-string-width #("ab" 0 2 (wrap-prefix " ")))))
|
||||
;; Test `line-prefix' property.
|
||||
(should (= 2 (org-string-width #("ab" 0 2 (line-prefix " "))))))
|
||||
|
||||
|
||||
;;; Regexp
|
||||
|
|
Loading…
Reference in New Issue