emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/hyperbole 8a5b3e2327 01/14: Add hywiki-word-is-p test


From: ELPA Syncer
Subject: [elpa] externals/hyperbole 8a5b3e2327 01/14: Add hywiki-word-is-p test
Date: Mon, 11 Nov 2024 03:58:22 -0500 (EST)

branch: externals/hyperbole
commit 8a5b3e2327f11e92576f97394451088d3dd27a7b
Author: Mats Lidell <mats.lidell@lidells.se>
Commit: Mats Lidell <mats.lidell@lidells.se>

    Add hywiki-word-is-p test
---
 ChangeLog            | 4 ++++
 test/hywiki-tests.el | 7 +++++++
 2 files changed, 11 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 2899e1dd74..0235043f4f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2024-11-01  Mats Lidell  <matsl@gnu.org>
+
+* test/hywiki-tests.el (hywiki-tests--word-is-p): Add hywiki test.
+
 2024-10-28  Bob Weiner  <rsw@gnu.org>
 
 * hibtypes.el (hywiki-existing-word): Call action with the singular version
diff --git a/test/hywiki-tests.el b/test/hywiki-tests.el
index 51f7f3af2d..dfec9848a0 100644
--- a/test/hywiki-tests.el
+++ b/test/hywiki-tests.el
@@ -105,6 +105,13 @@
       (hywiki-mode -1)
       (hy-delete-dir-and-buffer hywiki-directory))))
 
+(ert-deftest hywiki-tests--word-is-p ()
+  "Verify `hywiki-word-is-p' identifies WikiWords."
+  (should (hywiki-word-is-p "WikiWord"))
+  (should (hywiki-word-is-p "WikiWord#section"))
+  (should-not (hywiki-word-is-p "hy:WikiWord"))
+  (should-not (hywiki-word-is-p "wikiWord")))
+
 (ert-deftest hywiki-tests--maybe-at-wikiword-beginning ()
   "Verify `hywiki-maybe-at-wikiword-beginning' identifies if maybe at 
beginning of WikiWord."
   (with-temp-buffer



reply via email to

[Prev in Thread] Current Thread [Next in Thread]