branch: externals/hyperbole
commit f7da62f5b2b8805fd6278602bfec2d81a93d553f
Author: bw <[email protected]>
Commit: bw <[email protected]>
test/demo-tests.el - Fix 2 tests to work with new TOC code
- demo-table-of-contents-test, demo-smart-mouse-keys-ebut-test - Fix
to match new TOC handling.
---
ChangeLog | 4 ++++
test/demo-tests.el | 8 ++++----
2 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index c264d069bfe..78efd85b158 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2026-10-22 Bob Weiner <[email protected]>
+* test/demo-tests.el (demo-table-of-contents-test,
+ demo-smart-mouse-keys-ebut-test): Fix to match
+ new TOC handling.
+
* DEMO: Change TOC leader char from '*' to '-' to prevent interference
with section matches in tests.
diff --git a/test/demo-tests.el b/test/demo-tests.el
index c460cb5c4d5..feec7a4dae4 100644
--- a/test/demo-tests.el
+++ b/test/demo-tests.el
@@ -3,7 +3,7 @@
;; Author: Mats Lidell <[email protected]>
;;
;; Orig-Date: 30-Jan-21 at 12:00:00
-;; Last-Mod: 19-Oct-26 at 01:43:13 by Bob Weiner
+;; Last-Mod: 22-Oct-26 at 02:11:29 by Bob Weiner
;;
;; SPDX-License-Identifier: GPL-3.0-or-later
;;
@@ -58,7 +58,7 @@
(re-search-forward "<(Smart")
(action-key)
(should (bolp))
- (should (looking-at "^ +\\* Smart")))
+ (should (looking-at "^\\* Smart")))
(hy-test-helpers:kill-buffer "DEMO")))
(ert-deftest demo-table-of-contents-test ()
@@ -66,10 +66,10 @@
(let ((enable-local-variables nil))
(hypb:display-file-with-logo "DEMO")
(goto-char (point-min))
- (re-search-forward " \\* Koutl")
+ (re-search-forward " \\- Koutl")
(action-key)
(should (bolp))
- (should (looking-at "^[ \t]*\\* Koutliner")))
+ (should (looking-at "^\\* Koutliner")))
(hy-test-helpers:kill-buffer "DEMO")))
;; Smart scrolling