diff options
author | Kyle Meyer <kyle@kyleam.com> | 2015-02-19 22:59:39 -0500 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2015-02-19 22:59:39 -0500 |
commit | c69e429949e80dc263cf9e17488f4f5aec415738 (patch) | |
tree | ee8ec01aafdb41f79a9064fccb8f9691493aff66 /bog-tests.el | |
parent | 14a34a626b6684cce34d25800df4bd9765794376 (diff) | |
download | bog-c69e429949e80dc263cf9e17488f4f5aec415738.tar.gz |
Use cl-lib instead of dash
Diffstat (limited to 'bog-tests.el')
-rw-r--r-- | bog-tests.el | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/bog-tests.el b/bog-tests.el index 0bab888..cdfa02f 100644 --- a/bog-tests.el +++ b/bog-tests.el @@ -21,14 +21,13 @@ (require 'ert) (require 'org) -(require 'dash) -(require 'cl) +(require 'cl-lib) (require 'bog) ;; Modified from magit-tests.el. (defmacro bog-tests--with-temp-dir (&rest body) (declare (indent 0) (debug t)) - (let ((dir (gensym))) + (let ((dir (cl-gensym))) `(let ((,dir (file-name-as-directory (make-temp-file "dir" t)))) (unwind-protect (let ((default-directory ,dir)) ,@body) @@ -258,7 +257,7 @@ some text and <point><citekey>" ghi1950jkl * mno2000pqr * mno2000pqr" - (--sort (string-lessp it other) (bog-citekeys-in-buffer)))))) + (sort (bog-citekeys-in-buffer) #'string-lessp))))) (ert-deftest bog-heading-citekeys-in-buffer () (should (equal '("abc1900def" "mno2000pqr") @@ -427,8 +426,8 @@ some text" (concat citekey "-supplement.pdf"))) found-files) (make-directory bog-file-directory) - (--each variants - (write-region "" nil (expand-file-name it bog-file-directory))) + (dolist (var variants) + (write-region "" nil (expand-file-name var bog-file-directory))) (setq files-found (bog-citekey-files citekey)) (should (= (length files-found) 4))))) |