diff options
| author | Andrea Corallo | 2019-11-07 21:27:05 +0100 |
|---|---|---|
| committer | Andrea Corallo | 2020-01-01 11:38:01 +0100 |
| commit | f97c03ebca440229ff953baee9e458a3ddcdaa70 (patch) | |
| tree | fdf695fdccb392c7b3eaee156286d18bd78be92a /test | |
| parent | 33d8b736b0330f51050ca1fc389527d708b1eb23 (diff) | |
| download | emacs-f97c03ebca440229ff953baee9e458a3ddcdaa70.tar.gz emacs-f97c03ebca440229ff953baee9e458a3ddcdaa70.zip | |
add comp-tests-string-trim
Diffstat (limited to 'test')
| -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 | ;;;;;;;;;;;;;;;;;;;; |