[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/hyperbole 1f45b45af9 047/143: Add hyrolo-get-file-list
From: |
ELPA Syncer |
Subject: |
[elpa] externals/hyperbole 1f45b45af9 047/143: Add hyrolo-get-file-list tests |
Date: |
Mon, 19 Feb 2024 15:58:53 -0500 (EST) |
branch: externals/hyperbole
commit 1f45b45af97ae70131cf79113558d3803ecf56c6
Author: Mats Lidell <mats.lidell@lidells.se>
Commit: Mats Lidell <mats.lidell@lidells.se>
Add hyrolo-get-file-list tests
---
ChangeLog | 5 +++++
test/hyrolo-tests.el | 19 ++++++++++++++++++-
2 files changed, 23 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 650a09db5b..4969506ca4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2023-01-02 Mats Lidell <matsl@gnu.org>
+
+* test/hyrolo-tests.el (hyrolo-tests--get-file-list-change)
+ (hyrolo-tests--get-file-list-wrong-suffice): Add hyrolo tests.
+
2024-01-02 Mats Lidell <matsl@gnu.org>
* test/hypb-ert-tests.el (hypb-ert-tests--def-at-p)
diff --git a/test/hyrolo-tests.el b/test/hyrolo-tests.el
index 68dac7f64f..06b18d9e55 100644
--- a/test/hyrolo-tests.el
+++ b/test/hyrolo-tests.el
@@ -3,7 +3,7 @@
;; Author: Mats Lidell <matsl@gnu.org>
;;
;; Orig-Date: 19-Jun-21 at 22:42:00
-;; Last-Mod: 30-Dec-23 at 23:22:54 by Bob Weiner
+;; Last-Mod: 31-Dec-23 at 16:10:00 by Mats Lidell
;;
;; SPDX-License-Identifier: GPL-3.0-or-later
;;
@@ -24,6 +24,7 @@
(require 'hyrolo-demo)
(require 'hy-test-helpers "test/hy-test-helpers")
(require 'hib-kbd)
+(require 'kotl-mode)
(require 'with-simulated-input)
(declare-function hy-test-helpers:consume-input-events "hy-test-helpers")
@@ -449,5 +450,21 @@ Match a string in the second cell."
(kill-buffer hyrolo-display-buffer)
(delete-directory temporary-file-directory))))
+(ert-deftest hyrolo-tests--get-file-list-change ()
+ "Verify a change to hyrolo-file-list is noticed by hyrolo-get-file-list."
+ (let* ((tmp-file (make-temp-file "hypb" nil ".org"))
+ (hyrolo-file-list (list tmp-file)))
+ (unwind-protect
+ (let ((hl (hyrolo-get-file-list)))
+ (should (= 1 (length hl)))
+ (should (string= (car hl) tmp-file)))
+ (hy-delete-file-and-buffer tmp-file))))
+
+(ert-deftest hyrolo-tests--get-file-list-wrong-suffice ()
+ "Verify files need to have the proper suffix in hyrolo-file-list."
+ (should-error
+ (let ((hyrolo-file-list (list "file-no-proper-suffix")))
+ ())))
+
(provide 'hyrolo-tests)
;;; hyrolo-tests.el ends here
- [elpa] externals/hyperbole e1483d9cff 003/143: Temp commit to save multi-mode updates to HyRolo display buffer, (continued)
- [elpa] externals/hyperbole e1483d9cff 003/143: Temp commit to save multi-mode updates to HyRolo display buffer, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 802a688acf 006/143: Fix hyrolo-mode-map outlining key bindings, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 5703cf7608 007/143: HyRolo caching and movement fixes, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 6550a0ac7c 013/143: hyrolo-any-file-type-problem-p - Add to handle invalid file suffixes, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 2173bf7e09 002/143: Add new HYPERAMP.org talk slides and update talks in HY-TALK, ELPA Syncer, 2024/02/19
- [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 <=
- [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, 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