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

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

[elpa] master d4fc54b 110/272: ivy-test.el (counsel-unquote-regex-parens


From: Oleh Krehel
Subject: [elpa] master d4fc54b 110/272: ivy-test.el (counsel-unquote-regex-parens): Add test
Date: Mon, 25 Apr 2016 10:13:20 +0000

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

    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)")))



reply via email to

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