4 "Holds a test expression to evaluate with `ivy-eval'.")
7 "Holds the eval result of `ivy-expr' by `ivy-eval'.")
10 "Evaluate `ivy-expr'."
12 (setq ivy-result (eval ivy-expr)))
14 (global-set-key (kbd "C-c e") 'ivy-eval)
16 (defun ivy-with (expr keys)
17 "Evaluate EXPR followed by KEYS."
18 (let ((ivy-expr expr))
20 (vconcat (kbd "C-c e")
24 (ert-deftest ivy-read ()
26 (ivy-read "pattern: " nil)
29 (ivy-read "pattern: " '("42"))
32 (ivy-with '(ivy-read "pattern: " '("blue" "yellow"))
36 (ivy-with '(ivy-read "pattern: " '("blue" "yellow"))
40 (ivy-with '(ivy-read "pattern: " '("blue" "yellow"))
44 (ivy-with '(ivy-read "pattern: " '("blue" "yellow"))