emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master a249d15 329/399: ivy-test.el (ivy-avy): Only run if avy is


From: Oleh Krehel
Subject: [elpa] master a249d15 329/399: ivy-test.el (ivy-avy): Only run if avy is installed
Date: Sat, 20 Jul 2019 14:57:50 -0400 (EDT)

branch: master
commit a249d151b96f3c9a3b50e13ea5738b8f753a53cf
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    ivy-test.el (ivy-avy): Only run if avy is installed
---
 ivy-test.el | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/ivy-test.el b/ivy-test.el
index bbae82b..589252f 100644
--- a/ivy-test.el
+++ b/ivy-test.el
@@ -1212,10 +1212,11 @@ a buffer visiting a file."
              "tests/find-file/directories-with-spaces/bar baz ii/file2"))))
 
 (ert-deftest ivy-avy ()
-  (let ((enable-recursive-minibuffers t)
-        (read-numbers '(ivy-read "test: " (mapcar #'number-to-string 
(number-sequence 1 100)))))
-    (should (string= (ivy-with read-numbers "C-' a") "1"))
-    (should (string= (ivy-with read-numbers "C-v C-' d") "7"))))
+  (when (require 'avy nil t)
+    (let ((enable-recursive-minibuffers t)
+          (read-numbers '(ivy-read "test: " (mapcar #'number-to-string 
(number-sequence 1 100)))))
+      (should (string= (ivy-with read-numbers "C-' a") "1"))
+      (should (string= (ivy-with read-numbers "C-v C-' d") "7")))))
 
 (provide 'ivy-test)
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]