1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-07 16:10:46 -08:00

add comp-tests-string-trim

This commit is contained in:
Andrea Corallo 2019-11-07 21:27:05 +01:00
parent 33d8b736b0
commit f97c03ebca
2 changed files with 6 additions and 0 deletions

View file

@ -238,6 +238,9 @@
(defmacro comp-tests-macro-m (x)
x)
(defun comp-tests-string-trim-f (url)
(string-trim url))
;;;;;;;;;;;;;;;;;;;;
;; Tromey's tests ;;
;;;;;;;;;;;;;;;;;;;;

View file

@ -278,6 +278,9 @@
"Just check we can define macros"
(should (macrop (symbol-function 'comp-tests-macro-m))))
(ert-deftest comp-tests-string-trim ()
(should (string= (comp-tests-string-trim-f "dsaf ") "dsaf")))
;;;;;;;;;;;;;;;;;;;;
;; Tromey's tests ;;
;;;;;;;;;;;;;;;;;;;;