[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/hyperbole 54d7ae565a 020/143: Complete test suite for h
From: |
ELPA Syncer |
Subject: |
[elpa] externals/hyperbole 54d7ae565a 020/143: Complete test suite for hui:link-possible-types |
Date: |
Mon, 19 Feb 2024 15:58:48 -0500 (EST) |
branch: externals/hyperbole
commit 54d7ae565a6779b73186a14134a43b83d3b2532f
Author: Mats Lidell <mats.lidell@lidells.se>
Commit: Mats Lidell <mats.lidell@lidells.se>
Complete test suite for hui:link-possible-types
Note discrepancies from expected behavior are added as comments.
---
test/hui-tests.el | 41 ++++++++++++++++++++++++++++++++++++++---
1 file changed, 38 insertions(+), 3 deletions(-)
diff --git a/test/hui-tests.el b/test/hui-tests.el
index 6e694d73db..1a28f9a887 100644
--- a/test/hui-tests.el
+++ b/test/hui-tests.el
@@ -994,10 +994,44 @@ With point on label suggest that ibut for rename."
(should (equal (caar (hui:link-possible-types)) 'link-to-mail)))))
;; Directory Name link-to-directory
- ;; TBD
+ (let ((dir (make-temp-file "hypb" t)))
+ (unwind-protect
+ (let ((hargs:reading-type 'directory))
+ ;; The dired case looks identical to the general dired case
+ ;; below i.e. (let ((hargs:reading-type 'directory))
+ ;; (hui:link-possible-types)) with cursor on a line with a
+ ;; file in dired returns 'link-to-file. What is the expected
+ ;; behavior?
+ (with-current-buffer (dired dir)
+ (goto-char 1)
+ (should (equal (caar (hui:link-possible-types))
'link-to-directory)))
+ (with-temp-buffer
+ (insert dir)
+ (goto-char 4)
+ (should (equal (caar (hui:link-possible-types)) 'link-to-ibut)))
;; Expected: link-to-directory
+ (with-temp-buffer
+ (insert "/ssh:user@host.org:/home/user/file\n")
+ (goto-char 4)
+ (should (equal (caar (hui:link-possible-types)) 'link-to-ibut))))
;; Expected: link-to-directory
+ (hy-delete-dir-and-buffer dir)))
;; File Name link-to-file
- ;; TBD
+ (let* ((temporary-file-directory (make-temp-file "hypb" t))
+ (file (make-temp-file "hypb")))
+ (unwind-protect
+ (let ((hargs:reading-type 'file))
+ (with-current-buffer (dired temporary-file-directory)
+ (should (equal (caar (hui:link-possible-types)) 'link-to-file)))
+ (with-temp-buffer
+ (insert temporary-file-directory)
+ (goto-char 4)
+ (should (equal (caar (hui:link-possible-types)) 'link-to-ibut)))
;; Expected: link-to-file
+ (with-temp-buffer
+ (insert "/ssh:user@host.org:/home/user/\n")
+ (goto-char 4)
+ (should (equal (caar (hui:link-possible-types)) 'link-to-ibut))))
;; Expected: link-to-file
+ (hy-delete-file-and-buffer file)
+ (hy-delete-dir-and-buffer temporary-file-directory)))
;; Koutline Cell link-to-kcell
(let ((file (make-temp-file "hypb" nil ".kotl")))
@@ -1015,7 +1049,7 @@ With point on label suggest that ibut for rename."
(find-file file)
(outline-mode)
(goto-char 1)
- ;; BUG!? SHOULD link-to-string-match
+ ;; BUG!? Should be link-to-string-match?
(should (equal (caar (hui:link-possible-types)) 'link-to-file)))
(hy-delete-file-and-buffer file)))
@@ -1031,6 +1065,7 @@ With point on label suggest that ibut for rename."
(let ((dir (make-temp-file "hypb" t)))
(unwind-protect
(with-current-buffer (dired dir)
+ (goto-char 1) ;; EOL does not seem to matter!?
(should (equal (caar (hui:link-possible-types)) 'link-to-directory)))
(hy-delete-dir-and-buffer dir)))
- [elpa] externals/hyperbole 97111e4bd0 004/143: Merge branch 'master' into rsw, (continued)
- [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, 2024/02/19
- [elpa] externals/hyperbole 54d7ae565a 020/143: Complete test suite for hui:link-possible-types,
ELPA Syncer <=
- [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
- [elpa] externals/hyperbole acec506a2c 061/143: Require hbut so defib is defined, needed for compiling (#430), ELPA Syncer, 2024/02/19