[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 5f2cf0c 28/57: Update test
From: |
Oleh Krehel |
Subject: |
[elpa] master 5f2cf0c 28/57: Update test |
Date: |
Tue, 19 May 2015 14:21:31 +0000 |
branch: master
commit 5f2cf0cb78d9f04e607f767486bb7c1c3f161089
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
Update test
ivy-test.el (swiper--re-builder): Rename from `ivy--transform-re'.
---
ivy-test.el | 16 ++++++----------
1 files changed, 6 insertions(+), 10 deletions(-)
diff --git a/ivy-test.el b/ivy-test.el
index fffc5fd..951bfda 100644
--- a/ivy-test.el
+++ b/ivy-test.el
@@ -61,15 +61,11 @@
"z C-m")
"z")))
-(ert-deftest ivy--transform-re ()
- (setq ivy-last
- (make-ivy-state
- :keymap swiper-map))
+(ert-deftest swiper--re-builder ()
(setq swiper--width 4)
- (setq ivy--regex-function #'ivy--regex-plus)
- (should (string= (ivy--transform-re (funcall ivy--regex-function "^"))
+ (should (string= (swiper--re-builder "^")
"."))
- (should (string= (ivy--transform-re (funcall ivy--regex-function "^a"))
- "^[0-9 ]\\{5\\}a"))
- (should (string= (ivy--transform-re (funcall ivy--regex-function "^a b"))
- "\\(^[0-9 ]\\{5\\}a\\).*?\\(b\\)")))
+ (should (string= (swiper--re-builder "^a")
+ "^[0-9][0-9 ]\\{4\\}\\(a\\)"))
+ (should (string= (swiper--re-builder "^a b")
+ "^[0-9][0-9 ]\\{4\\}\\(a\\).*?\\(b\\)")))
- [elpa] master f97622d 30/57: swiper.el (swiper-font-lock-ensure): Ignore fundamental-mode, (continued)
- [elpa] master f97622d 30/57: swiper.el (swiper-font-lock-ensure): Ignore fundamental-mode, Oleh Krehel, 2015/05/19
- [elpa] master 6d4f2b3 34/57: Fix the error switching to non-existent buffers, Oleh Krehel, 2015/05/19
- [elpa] master 16eb4a2 31/57: When completing file names, defer to `minibuffer-complete' for "TAB", Oleh Krehel, 2015/05/19
- [elpa] master b63c358 35/57: Properly update virtual buffers for "^ " interaction, Oleh Krehel, 2015/05/19
- [elpa] master d8f79fa 43/57: ivy.el (ivy-partial-or-done): Update doc, Oleh Krehel, 2015/05/19
- [elpa] master ce0efb3 29/57: Allow to customize the minibuffer formatter, Oleh Krehel, 2015/05/19
- [elpa] master 9a2083a 27/57: Swiper should use the :re-builder argument, Oleh Krehel, 2015/05/19
- [elpa] master d8c2ef3 45/57: ivy.el (ivy-partial-or-done): More predictability, Oleh Krehel, 2015/05/19
- [elpa] master e05e3b7 39/57: ivy.el (ivy-read): Keep the last ivy--index for :dynamic-collection, Oleh Krehel, 2015/05/19
- [elpa] master 1cdb6ed 32/57: ivy.el (ivy-partial-or-done): Fixup, Oleh Krehel, 2015/05/19
- [elpa] master 5f2cf0c 28/57: Update test,
Oleh Krehel <=
- [elpa] master 6405cb3 42/57: ivy.el (ivy-partial-or-done): Always forward to `ivy-alt-done', Oleh Krehel, 2015/05/19
- [elpa] master 10f9954 50/57: counsel.el (counsel-git-grep): Warn if not in a repository, Oleh Krehel, 2015/05/19
- [elpa] master 2cedcf5 37/57: Introduce :matcher for counsel-git-grep, Oleh Krehel, 2015/05/19
- [elpa] master 93faef3 41/57: ivy.el (ivy-delete-char): Add and bind to "C-d", Oleh Krehel, 2015/05/19
- [elpa] master 8630048 47/57: Fixed ivy--preselect-index on windows where the drives folders ends with a backslash (C:\, D:\), Oleh Krehel, 2015/05/19
- [elpa] master 1c0703e 36/57: Forward to minibuffer-complete for filenames only if "^/", Oleh Krehel, 2015/05/19
- [elpa] master 70c8c8a 40/57: ivy.el (ivy-switch-buffer): Preselect other-buffer, Oleh Krehel, 2015/05/19
- [elpa] master 9da8e53 54/57: counsel.el (counsel-info-lookup-symbol): Turn on sorting, Oleh Krehel, 2015/05/19
- [elpa] master e0b6c0c 46/57: Update the way spaces are quoted using ivy, Oleh Krehel, 2015/05/19
- [elpa] master 323efda 38/57: counsel-git-grep now works with ivy-resume, Oleh Krehel, 2015/05/19