fix(wpcarro/emacs): Remove lingering dash.el dep
CI couldn't catch this because the dependency is discovered at runtime, and there were no tests consuming `list-concat`. Added the tests and removed the usage of `-concat`. Change-Id: I5bcce9aa8170001a9d35c104da09374ab30ffbc5 Reviewed-on: https://cl.tvl.fyi/c/depot/+/6043 Reviewed-by: wpcarro <wpcarro@gmail.com> Autosubmit: wpcarro <wpcarro@gmail.com> Tested-by: BuildkiteCI
This commit is contained in:
parent
8670746109
commit
cc802eb44b
2 changed files with 5 additions and 1 deletions
|
@ -44,7 +44,7 @@
|
|||
|
||||
(defun list-concat (&rest lists)
|
||||
"Joins `LISTS' into on list."
|
||||
(apply #'-concat lists))
|
||||
(apply #'append lists))
|
||||
|
||||
(defun list-duplicate (n x)
|
||||
"Duplicates the given element, X, N times in a list."
|
||||
|
|
|
@ -97,6 +97,10 @@
|
|||
(should (equal '(a b c) (list-delete 'b '(a b b c))))
|
||||
(should (equal '() (list-delete 'b '()))))
|
||||
|
||||
(ert-deftest list-concat ()
|
||||
(should (equal '(1 2 3 4 5) (list-concat '(1) '(2 3) '(4 5))))
|
||||
(should (equal '(1 2 3) (list-concat '() '(1 2 3)))))
|
||||
|
||||
;; TODO(wpcarro): Supoprt this.
|
||||
;; (ert-deftest list-zip ()
|
||||
;; (should (equal '((1 3 5) (2 4 6)) (list-zip '(1 2) '(3 4) '(5 6))))
|
||||
|
|
Loading…
Reference in a new issue