[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/hyperbole fc6df9d652 056/143: Merge remote branch 'rsw'
From: |
ELPA Syncer |
Subject: |
[elpa] externals/hyperbole fc6df9d652 056/143: Merge remote branch 'rsw' into rsw |
Date: |
Mon, 19 Feb 2024 15:58:54 -0500 (EST) |
branch: externals/hyperbole
commit fc6df9d652b577ac6060c8a94576f270d318ff75
Merge: f098816abd 564c147587
Author: bw <rsw@gnu.org>
Commit: bw <rsw@gnu.org>
Merge remote branch 'rsw' into rsw
---
ChangeLog | 5 ++++
test/hypb-ert-tests.el | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 68 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 5bf51c6255..311ab9df5f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -23,6 +23,11 @@
for the Assist Key when on a Hyperbole button.
hmouse-drv.el (hkey-help): Update to display proper Assist Key help.
+2024-01-02 Mats Lidell <matsl@gnu.org>
+
+* test/hypb-ert-tests.el (hypb-ert-tests--def-at-p)
+ (hypb-ert-tests--edebug-is-called): Add tests for hypb-ert.
+
2024-01-01 Bob Weiner <rsw@gnu.org>
* hypb-ert.el (hypb-ert-def-at-p): Update doc. Fix grouping ref that was
diff --git a/test/hypb-ert-tests.el b/test/hypb-ert-tests.el
new file mode 100644
index 0000000000..cdc39118f9
--- /dev/null
+++ b/test/hypb-ert-tests.el
@@ -0,0 +1,63 @@
+;;; hypb-ert-tests.el --- tests for hypb-ert -*-
lexical-binding: t; -*-
+;;
+;; Author: Mats Lidell
+;;
+;; Orig-Date: 1-Jan-24 at 23:11:54
+;; Last-Mod: 2-Jan-24 at 00:28:42 by Mats Lidell
+;;
+;; SPDX-License-Identifier: GPL-3.0-or-later
+;;
+;; Copyright (C) 2024 Free Software Foundation, Inc.
+;; See the "HY-COPY" file for license information.
+;;
+;; This file is part of GNU Hyperbole.
+
+;;; Commentary:
+;;
+
+;;; Code:
+
+(require 'ert)
+(require 'el-mock)
+(require 'hypb-ert)
+
+(ert-deftest hypb-ert-tests--def-at-p ()
+ "Verify an `ert-deftest' name is identified."
+ (let ((test-name "hypb-ert-tests--test"))
+ (with-temp-buffer
+ (insert "(ert-deftest " test-name " ()\n\"Docstring.\"\nt\n)\n")
+
+ (goto-char (point-min))
+ (should-not (hypb-ert-def-at-p))
+
+ (goto-char (1+ (point-min)))
+ (should (string= (hypb-ert-def-at-p) test-name))
+
+ (goto-char (- (line-end-position) 3))
+ (should (string= (hypb-ert-def-at-p) test-name))
+
+ (goto-char (- (line-end-position) 2))
+ (should-not (hypb-ert-def-at-p))
+
+ (end-of-line)
+ (should-not (hypb-ert-def-at-p))
+
+ (goto-char (1+ (point-min)))
+ (pcase-let ((`(,name ,start ,end)
+ (hypb-ert-def-at-p t)))
+ (should (string= name test-name))
+ (should (string= (buffer-substring start end) test-name))))))
+
+(ert-deftest hypb-ert-tests--edebug-is-called ()
+ "Verify `edebug-defun' is called when debug-it argument is set."
+ (let ((test-name "hypb-ert-tests--test"))
+ (with-temp-buffer
+ (insert "(ert-deftest " test-name " ()\n\"Docstring.\"\nt\n)\n")
+ (emacs-lisp-mode)
+ (goto-char (1+ (point-min)))
+ (mocklet (((edebug-defun) => t)
+ ((hypb-ert *) => t))
+ (hypb-ert-run-test-at-definition test-name t)))))
+
+(provide 'hypb-ert-tests)
+;;; hypb-ert-tests.el ends here
- [elpa] externals/hyperbole a7a5723712 015/143: Fix 'hpath--expand-list-match-regexp' test., (continued)
- [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
- [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 <=
- [elpa] externals/hyperbole acec506a2c 061/143: Require hbut so defib is defined, needed for compiling (#430), ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 12e714d824 072/143: Move xref extensions to new "hsys-xref.el". Add ibut API extensions, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole a08fd67af3 057/143: Merge pull request #427 from rswgnu/matsl-rsw-add-hyrolo-tests, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 29dda66c3e 059/143: Merge remote branch 'rsw' of hyperbole into rsw, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 19e51dfb0e 009/143: +* hyrolo.el (hyrolo-move-backward, hyrolo-move-forward): Fixes., ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 564c147587 046/143: Add tests for hypb-ert (#429), ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 97f4e12386 023/143: hui--link-possible-types - ensure only 1 specific type per test, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole badf1e5281 027/143: Merge remote branch 'rsw' into rsw, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 00d5af41be 039/143: Add Smart Key support for rsw's new ert-results.el package, ELPA Syncer, 2024/02/19
- [elpa] externals/hyperbole 586a568992 054/143: Update ChangeLog, ELPA Syncer, 2024/02/19