33; ; Author: Mats Lidell <matsl@gnu.org>
44; ;
55; ; Orig-Date: 19-Jun-21 at 22:42:00
6- ; ; Last-Mod: 5 -Apr-26 at 02:24:43 by Bob Weiner
6+ ; ; Last-Mod: 8 -Apr-26 at 23:14:30 by Bob Weiner
77; ;
88; ; SPDX-License-Identifier: GPL-3.0-or-later
99; ;
@@ -461,7 +461,6 @@ Match a string in the second cell."
461461
462462(ert-deftest hyrolo-tests--fgrep-move-test ()
463463 " Verify different move commands after `hyrolo-fgrep' ."
464- :expected-result :failed
465464 (let* ((kotl-file1 (hyrolo-tests--gen-kotl-outline " heading" " foo bar" 1 ))
466465 (kotl-file2 (hyrolo-tests--gen-kotl-outline " heading" " foo bar" 1 ))
467466 (hyrolo-file-list (list kotl-file1 kotl-file2))
@@ -472,6 +471,20 @@ Match a string in the second cell."
472471 (hyrolo-fgrep " bar" )
473472 (should (string= hyrolo-display-buffer (buffer-name )))
474473
474+ (ert-info (" Hide first header and move down using ?n" )
475+ (should (looking-at-p " ===" ))
476+ (execute-kbd-macro (kbd " h" ))
477+ (execute-kbd-macro (kbd " n" ))
478+ (should (looking-at-p " ===" ))
479+ (execute-kbd-macro (kbd " n" ))
480+ (should (looking-at-p h1_str))
481+ (execute-kbd-macro (kbd " n" ))
482+ (should (looking-at-p h1a_str))
483+ (execute-kbd-macro (kbd " n" ))
484+ (should (eobp )))
485+
486+ (outline-show-all)
487+ (goto-char (point-min ))
475488 (ert-info (" Move down using ?n" )
476489 (should (looking-at-p " ===" ))
477490 (execute-kbd-macro (kbd " n" ))
@@ -520,19 +533,7 @@ Match a string in the second cell."
520533 (execute-kbd-macro (kbd " b" ))
521534 (should (looking-at-p " ===" ))
522535 (should-error (execute-kbd-macro (kbd " b" )))
523- (should (bobp )))
524-
525- (ert-info (" Hide first header and move down using ?n" )
526- (should (looking-at-p " ===" ))
527- (execute-kbd-macro (kbd " h" ))
528- (execute-kbd-macro (kbd " n" ))
529- (should (looking-at-p " ===" ))
530- (execute-kbd-macro (kbd " n" ))
531- (should (looking-at-p h1_str))
532- (execute-kbd-macro (kbd " n" ))
533- (should (looking-at-p h1a_str))
534- (execute-kbd-macro (kbd " n" ))
535- (should (eobp ))))
536+ (should (bobp ))))
536537 ; ; Unwind forms
537538 (kill-buffer hyrolo-display-buffer)
538539 (hy-delete-files-and-buffers hyrolo-file-list))))
0 commit comments