Make string-pad take an optional START parameter
* lisp/emacs-lisp/subr-x.el (string-pad): Alter the calling convention.
This commit is contained in:
parent
9480169f1b
commit
051d8f7535
4 changed files with 14 additions and 12 deletions
|
@ -613,7 +613,7 @@
|
|||
(ert-deftest subr-string-pad ()
|
||||
(should (equal (string-pad "foo" 5) "foo "))
|
||||
(should (equal (string-pad "foo" 5 ?-) "foo--"))
|
||||
(should (equal (string-pad "foo" -5 ?-) "--foo"))
|
||||
(should (equal (string-pad "foo" 5 ?- t) "--foo"))
|
||||
(should (equal (string-pad "foo" 2 ?-) "foo")))
|
||||
|
||||
(ert-deftest subr-string-chop-newline ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue