diff options
Diffstat (limited to 'test/src')
| -rw-r--r-- | test/src/comp-test-funcs.el | 3 | ||||
| -rw-r--r-- | test/src/comp-tests.el | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/test/src/comp-test-funcs.el b/test/src/comp-test-funcs.el index e3fc0f26b58..6127d24e656 100644 --- a/test/src/comp-test-funcs.el +++ b/test/src/comp-test-funcs.el | |||
| @@ -238,6 +238,9 @@ | |||
| 238 | (defmacro comp-tests-macro-m (x) | 238 | (defmacro comp-tests-macro-m (x) |
| 239 | x) | 239 | x) |
| 240 | 240 | ||
| 241 | (defun comp-tests-string-trim-f (url) | ||
| 242 | (string-trim url)) | ||
| 243 | |||
| 241 | ;;;;;;;;;;;;;;;;;;;; | 244 | ;;;;;;;;;;;;;;;;;;;; |
| 242 | ;; Tromey's tests ;; | 245 | ;; Tromey's tests ;; |
| 243 | ;;;;;;;;;;;;;;;;;;;; | 246 | ;;;;;;;;;;;;;;;;;;;; |
diff --git a/test/src/comp-tests.el b/test/src/comp-tests.el index 9e0ca196871..6d714656ade 100644 --- a/test/src/comp-tests.el +++ b/test/src/comp-tests.el | |||
| @@ -278,6 +278,9 @@ | |||
| 278 | "Just check we can define macros" | 278 | "Just check we can define macros" |
| 279 | (should (macrop (symbol-function 'comp-tests-macro-m)))) | 279 | (should (macrop (symbol-function 'comp-tests-macro-m)))) |
| 280 | 280 | ||
| 281 | (ert-deftest comp-tests-string-trim () | ||
| 282 | (should (string= (comp-tests-string-trim-f "dsaf ") "dsaf"))) | ||
| 283 | |||
| 281 | ;;;;;;;;;;;;;;;;;;;; | 284 | ;;;;;;;;;;;;;;;;;;;; |
| 282 | ;; Tromey's tests ;; | 285 | ;; Tromey's tests ;; |
| 283 | ;;;;;;;;;;;;;;;;;;;; | 286 | ;;;;;;;;;;;;;;;;;;;; |