branch: externals/ivy-hydra
commit b4d928644959287abef35715e2e306f71f107d43
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
ivy-test.el (ivy-read-sort-def): Add test
Re #2358
---
ivy-test.el | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/ivy-test.el b/ivy-test.el
index 2310738..0669bab 100644
--- a/ivy-test.el
+++ b/ivy-test.el
@@ -189,6 +189,11 @@ will bring the behavior in line with the newer Emacsen."
"C-m")
'(("b" . "1") ("a" . "2")))))
+(ert-deftest ivy-read-sort-def ()
+ (should (equal (ivy-with '(ivy-read "Test: " '("1" "2") :def '("a" "b" "c"))
+ "C-m")
+ "a")))
+
(ert-deftest ivy-read-remap ()
(should (equal
(ivy-with '(ivy-read "pattern: " '("blue" "yellow" "red"))