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

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

[elpa] master 2fa7cec 366/399: ivy-test.el (swiper--re-builder): Add tes


From: Oleh Krehel
Subject: [elpa] master 2fa7cec 366/399: ivy-test.el (swiper--re-builder): Add test
Date: Sat, 20 Jul 2019 14:58:00 -0400 (EDT)

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

    ivy-test.el (swiper--re-builder): Add test
---
 ivy-test.el | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/ivy-test.el b/ivy-test.el
index 17d7166..a6a922e 100644
--- a/ivy-test.el
+++ b/ivy-test.el
@@ -181,7 +181,11 @@ will bring the behavior in line with the newer Emacsen."
   (should (string= (swiper--re-builder "^a")
                    "^ ?\\(a\\)"))
   (should (string= (swiper--re-builder "^a b")
-                   "^ \\(a\\).*?\\(b\\)")))
+                   "^ \\(a\\).*?\\(b\\)"))
+  (let ((search-default-mode 'char-fold-to-regexp))
+    (should (string= (swiper--re-builder "f b")
+                     
"\\(\\(?:ḟ\\|[fᶠḟⓕf𝐟𝑓𝒇𝒻𝓯𝔣𝕗𝖋𝖿𝗳𝘧𝙛𝚏]\\)\\).*?\\(\\(?:b[̣̱̇]\\|[bᵇḃḅḇⓑb𝐛𝑏𝒃𝒷𝓫𝔟𝕓𝖇𝖻𝗯𝘣𝙗𝚋]\\)\\)"))
+    (should (= ivy--subexps 2))))
 
 (ert-deftest ivy--split ()
   (should (equal (ivy--split "King of the who?")



reply via email to

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