branch: master commit d4fc54b0bec950a6bb8be8bafea5b6988345b1b3 Author: Oleh Krehel <ohwoeo...@gmail.com> Commit: Oleh Krehel <ohwoeo...@gmail.com>
ivy-test.el (counsel-unquote-regex-parens): Add test * Makefile: Update. --- Makefile | 2 +- ivy-test.el | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5169643..c362e30 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ emacs ?= emacs -LOAD = -l colir.el -l ivy.el -l swiper.el +LOAD = -l colir.el -l ivy.el -l swiper.el -l counsel.el .PHONY: all compile clean diff --git a/ivy-test.el b/ivy-test.el index 5d2a27a..807f8ad 100644 --- a/ivy-test.el +++ b/ivy-test.el @@ -21,6 +21,7 @@ (require 'ert) (require 'ivy) +(require 'counsel) (defvar ivy-expr nil "Holds a test expression to evaluate with `ivy-eval'.") @@ -160,3 +161,8 @@ '("the" "The"))) (should (equal (ivy--filter "The" '("foo" "the" "The")) '("The")))) + +(ert-deftest counsel-unquote-regex-parens () + (should (equal (counsel-unquote-regex-parens + (ivy--regex "foo bar")) + "(foo).*?(bar)")))