diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2020-12-21 20:18:57 +0100 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2020-12-21 20:18:57 +0100 |
commit | cf2e8321850f81d9eb0ebc23a4887f12dc3dbfac (patch) | |
tree | fcfeb0635d9e0d52b6ff9af3ee64e1c66e5d5721 /test | |
parent | b3dec3176673fa99e57e3916b36ea4367d47c0fa (diff) | |
download | emacs-cf2e8321850f81d9eb0ebc23a4887f12dc3dbfac.tar.gz |
Rename slice-string to string-slice
* lisp/emacs-lisp/subr-x.el (string-slice): Rename from slice-string.
* doc/lispref/strings.texi (Creating Strings): Ditto.
Diffstat (limited to 'test')
-rw-r--r-- | test/lisp/emacs-lisp/subr-x-tests.el | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/lisp/emacs-lisp/subr-x-tests.el b/test/lisp/emacs-lisp/subr-x-tests.el index 94ff459869c..6ed06d4ce4f 100644 --- a/test/lisp/emacs-lisp/subr-x-tests.el +++ b/test/lisp/emacs-lisp/subr-x-tests.el @@ -602,11 +602,11 @@ (should (equal (string-lines "foo") '("foo"))) (should (equal (string-lines "foo \nbar") '("foo " "bar")))) -(ert-deftest subr-slice-string () - (should (equal (slice-string "foo-bar" "-") '("foo" "-bar"))) - (should (equal (slice-string "foo-bar-" "-") '("foo" "-bar" "-"))) - (should (equal (slice-string "-foo-bar-" "-") '("-foo" "-bar" "-"))) - (should (equal (slice-string "ooo" "lala") '("ooo")))) +(ert-deftest subr-string-slice () + (should (equal (string-slice "foo-bar" "-") '("foo" "-bar"))) + (should (equal (string-slice "foo-bar-" "-") '("foo" "-bar" "-"))) + (should (equal (string-slice "-foo-bar-" "-") '("-foo" "-bar" "-"))) + (should (equal (string-slice "ooo" "lala") '("ooo")))) (ert-deftest subr-string-pad () (should (equal (string-pad "foo" 5) "foo ")) |