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:
parent
33d8b736b0
commit
f97c03ebca
2 changed files with 6 additions and 0 deletions
|
|
@ -238,6 +238,9 @@
|
|||
(defmacro comp-tests-macro-m (x)
|
||||
x)
|
||||
|
||||
(defun comp-tests-string-trim-f (url)
|
||||
(string-trim url))
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;
|
||||
;; Tromey's tests ;;
|
||||
;;;;;;;;;;;;;;;;;;;;
|
||||
|
|
|
|||
|
|
@ -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 ;;
|
||||
;;;;;;;;;;;;;;;;;;;;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue