aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/lisp/subr-tests.el11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/lisp/subr-tests.el b/test/lisp/subr-tests.el
index 024cbe85bba..f598ee57f8d 100644
--- a/test/lisp/subr-tests.el
+++ b/test/lisp/subr-tests.el
@@ -1505,5 +1505,16 @@ final or penultimate step during initialization."))
1505 (should (hash-table-contains-p 'cookie h)) 1505 (should (hash-table-contains-p 'cookie h))
1506 (should (hash-table-contains-p 'milk h)))) 1506 (should (hash-table-contains-p 'milk h))))
1507 1507
1508(ert-deftest subr-test-split-string ()
1509 (let ((text "-*- lexical-binding: t; -*-")
1510 (seps "-\\*-")
1511 (trim "[ \t\n\r-]+"))
1512 (should (equal (split-string text seps nil trim)
1513 '("" "lexical-binding: t;" "")))
1514 (should (equal (split-string text seps t trim)
1515 '("lexical-binding: t;")))
1516 (should (equal (split-string text "[ \t\n\r-]*-\\*-[ \t\n\r-]*")
1517 '("" "lexical-binding: t;" "")))))
1518
1508(provide 'subr-tests) 1519(provide 'subr-tests)
1509;;; subr-tests.el ends here 1520;;; subr-tests.el ends here