branch: master commit fd19ab1d083cf872c4427309ad32444de735b6e9 Author: Oleh Krehel <ohwoeo...@gmail.com> Commit: Oleh Krehel <ohwoeo...@gmail.com>
Add a test for the perfect match logic Re #270 --- ivy-test.el | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/ivy-test.el b/ivy-test.el index 03605e1..ddfef34 100644 --- a/ivy-test.el +++ b/ivy-test.el @@ -72,7 +72,11 @@ (should (equal (ivy-with '(ivy-read "test" '("aaab" "aaac")) "a C-n <tab> C-m") - "aaac"))) + "aaac")) + (should (equal + (ivy-with '(ivy-read "pattern: " '("can do" "can" "can't do")) + "can C-m") + "can"))) (ert-deftest swiper--re-builder () (setq swiper--width 4)