branch: master
commit 2fa7cec045e52117b01969c7ffa3fc97f1ce92e0
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>

    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