[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/hyperbole a7a5723712 015/143: Fix 'hpath--expand-list-m
From: |
ELPA Syncer |
Subject: |
[elpa] externals/hyperbole a7a5723712 015/143: Fix 'hpath--expand-list-match-regexp' test. |
Date: |
Mon, 19 Feb 2024 15:58:47 -0500 (EST) |
branch: externals/hyperbole
commit a7a572371240a831d052a9f76ad1119258378418
Author: bw <rsw@gnu.org>
Commit: bw <rsw@gnu.org>
Fix 'hpath--expand-list-match-regexp' test.
---
test/hpath-tests.el | 23 ++++++++++++-----------
1 file changed, 12 insertions(+), 11 deletions(-)
diff --git a/test/hpath-tests.el b/test/hpath-tests.el
index 9a16799fdb..3d61ee7b4d 100644
--- a/test/hpath-tests.el
+++ b/test/hpath-tests.el
@@ -3,7 +3,7 @@
;; Author: Mats Lidell <matsl@gnu.org>
;;
;; Orig-Date: 28-Feb-21 at 23:26:00
-;; Last-Mod: 17-Dec-23 at 19:35:06 by Mats Lidell
+;; Last-Mod: 24-Dec-23 at 03:30:04 by Bob Weiner
;;
;; SPDX-License-Identifier: GPL-3.0-or-later
;;
@@ -363,20 +363,21 @@
(ert-deftest hpath--expand-list-match-regexp ()
"Verify expand-list selects files using match regexp."
- (let* ((temporary-file-directory (make-temp-file "hypb" t))
- (org1-file (make-temp-file "hypb" nil ".org"))
- (org2-file (make-temp-file "hypb" nil ".org"))
- (kotl-file (make-temp-file "hypb" nil ".kotl")))
+ (let* ((temp-dir (make-temp-file "hypb-dir" t))
+ (file-prefix (expand-file-name "hypb" temp-dir))
+ (org1-file (make-temp-file file-prefix nil ".org"))
+ (org2-file (make-temp-file file-prefix nil ".org"))
+ (kotl-file (make-temp-file file-prefix nil ".kotl")))
(unwind-protect
(progn
- (should (= (length (hpath:expand-list (list
temporary-file-directory))) 3))
- (should (= (length (hpath:expand-list (list
temporary-file-directory) ".*")) 3))
- (should (= (length (hpath:expand-list (list
temporary-file-directory) ".org")) 2))
- (should (= (length (hpath:expand-list (list
temporary-file-directory) ".kotl")) 1))
- (should (= (length (hpath:expand-list (list
temporary-file-directory) ".md")) 0)))
+ (should (= (length (hpath:expand-list (list temp-dir))) 3))
+ (should (= (length (hpath:expand-list (list temp-dir) ".*")) 3))
+ (should (= (length (hpath:expand-list (list temp-dir) ".org")) 2))
+ (should (= (length (hpath:expand-list (list temp-dir) ".kotl")) 1))
+ (should (= (length (hpath:expand-list (list temp-dir) ".md")) 0)))
(dolist (f (list org1-file org2-file kotl-file))
(hy-delete-file-and-buffer f))
- (delete-directory temporary-file-directory))))
+ (delete-directory temp-dir))))
(provide 'hpath-tests)
;;; hpath-tests.el ends here
- [elpa] externals/hyperbole 339c6a2a8d 005/143: Fixes for handling outline-regexp and hyrolo-entry-regexp, (continued)
- [elpa] externals/hyperbole 339c6a2a8d 005/143: Fixes for handling outline-regexp and hyrolo-entry-regexp, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 97111e4bd0 004/143: Merge branch 'master' into rsw, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 1f942eac01 008/143: Fix HyRolo {n} and {p} movement commands, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole ca3cf8e427 017/143: hyrolo.el - Fix {t} and {o} commands, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole bc0c5b9086 044/143: HyRolo - if hyrolo-file-list is set on load, initialize its cache, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 1f45b45af9 047/143: Add hyrolo-get-file-list tests, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 38110ee8f7 065/143: Makefile - Change running of ert tests from interactively to batch, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 407114d7f3 070/143: Run tests in batch mode specified by selector, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 926f8a02fd 010/143: Fix many hyrolo multi-file-format issues; fix hywconfig by name, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 027eb85174 014/143: Merge matsl-rsw-hpath-expand' into rsw, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole a7a5723712 015/143: Fix 'hpath--expand-list-match-regexp' test.,
ELPA Syncer <=
- [elpa] externals/hyperbole 54d7ae565a 020/143: Complete test suite for hui:link-possible-types, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 12950cd2db 029/143: Matsl rsw fix failing tests (#424), ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 98edfae8d1 021/143: Fix test with link-to-string-match since bug is fixed, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 966605b7a3 028/143: hkey-window-link, {M-o w} - invert the meaning of prefix arg, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 7adb441c0e 036/143: kotl-mode - fix kill and yank commands not moving to valid pos first, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 2187b3522b 049/143: Add test for hiding and showing, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole e995fc8905 050/143: Add test for moving between two sections, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 7657601745 043/143: hyrolo-mode-map - bind {n} and {C-c C-n} to the same command, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole e67d0f733f 058/143: Fix edebugging of tests that have not been previously defined, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole fc6df9d652 056/143: Merge remote branch 'rsw' into rsw, ELPA Syncer, 2024/02/19