]> git.eshelyaron.com Git - emacs.git/commitdiff
add comp-tests-string-trim
authorAndrea Corallo <akrl@sdf.org>
Thu, 7 Nov 2019 20:27:05 +0000 (21:27 +0100)
committerAndrea Corallo <akrl@sdf.org>
Wed, 1 Jan 2020 10:38:01 +0000 (11:38 +0100)
test/src/comp-test-funcs.el
test/src/comp-tests.el

index e3fc0f26b581b0945dfdf2ce49a6c524eb9976ba..6127d24e656bcdd107bedbd523e19477340a1e1a 100644 (file)
 (defmacro comp-tests-macro-m (x)
   x)
 
+(defun comp-tests-string-trim-f (url)
+  (string-trim url))
+
 ;;;;;;;;;;;;;;;;;;;;
 ;; Tromey's tests ;;
 ;;;;;;;;;;;;;;;;;;;;
index 9e0ca1968711fb11a28b7593cae15a1b903af0ed..6d714656ade1cd9c1d42fcb0eedbc86da76fe4f8 100644 (file)
   "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 ;;
 ;;;;;;;;;;;;;;;;;;;;