Skip to content

Verify insertion of char before a WikiWord dehighlights the WikiWord - #1052

Merged
matsl merged 2 commits into
masterfrom
pr_add_test_for_insert_char_before_wikiword_dehighlights
Sep 12, 2026
Merged

Verify insertion of char before a WikiWord dehighlights the WikiWord#1052
matsl merged 2 commits into
masterfrom
pr_add_test_for_insert_char_before_wikiword_dehighlights

Conversation

@matsl

@matsl matsl commented Sep 10, 2026

Copy link
Copy Markdown
Collaborator

What

Verify insertion of char before a wikiWord dehighlights.

  • test/hywiki-tests.el (hywiki-tests--hywiki-face-regions): Add beg
    and end parameter for listing hywiki--word-face in a limited region.
    (hywiki-tests--word-at): Use hywiki-tests--hywiki-face-regions for
    verifying a non WikiWord is not highlighted.
    (hywiki-tests--wikiword-step-check): Add test that inserts a char
    before a WikiWord.

  • test/hywiki-yki-tests.el
    (hywiki--verify-get-buffer-text-with-point-and-highlight-compact):
    Add test that inserts a char before a WikiWord.

Why

This test case was missing.

@matsl matsl changed the title Verify insertion of char before a wikiWord dehighlights Verify insertion of char before a WikiWord dehighlights the WikiWord Sep 10, 2026
@matsl
matsl requested a review from rswgnu September 10, 2026 18:29
* test/hywiki-tests.el (hywiki-tests--hywiki-face-regions): Add beg
    and end parameter for listing hywiki--word-face in a limited region.
    (hywiki-tests--word-at): Use hywiki-tests--hywiki-face-regions for
    verifying a non WikiWord is not highlighted.
    (hywiki-tests--wikiword-step-check): Add test that inserts a char
    before a WikiWord.

* test/hywiki-yki-tests.el
    (hywiki--verify-get-buffer-text-with-point-and-highlight-compact):
    Add test that inserts a char before a WikiWord.
Added an extra trailing space that makes the test pass. Marked the
changes with FIXME comments for future investigations.
@matsl
matsl force-pushed the pr_add_test_for_insert_char_before_wikiword_dehighlights branch from 885b9fa to a271e50 Compare September 11, 2026 22:45
@matsl
matsl marked this pull request as ready for review September 11, 2026 22:54
@matsl
matsl merged commit 7e17b2e into master Sep 12, 2026
5 checks passed
@matsl
matsl deleted the pr_add_test_for_insert_char_before_wikiword_dehighlights branch September 12, 2026 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants