Skip to content

Remove expected failed tag and expand it to cover more cases#920

Merged
matsl merged 1 commit intomasterfrom
pr_expand_expected_failed_test_and_make_it_succeeed
Mar 26, 2026
Merged

Remove expected failed tag and expand it to cover more cases#920
matsl merged 1 commit intomasterfrom
pr_expand_expected_failed_test_and_make_it_succeeed

Conversation

@matsl
Copy link
Collaborator

@matsl matsl commented Mar 25, 2026

What

Make tests succeed so current behavior stands our clearer.

  • test/hui-tests.el (hui--kill-region-delimited-text-and-yank-back):
    Remove expected-result tag and expand tests.
    (hui-tests--selectable-thing-and-bounds): Add test.

Why

We have had this test in state expected to fail for a long time but
not fixed why it is failing. This PR flips the coin and expands the
tests to cover more cases. All tests are now set to succeed and by
that the current behavior is documented.

Note

There are likely more cases to cover since the functions under test
depend on character classes.

What should really happen is tricky so I hope it is easier to review
using this format of the test.

Make tests succeed so current behavior stands our clearer.

* test/hui-tests.el (hui--kill-region-delimited-text-and-yank-back):
    Remove expected-result tag and expand tests.
    (hui-tests--selectable-thing-and-bounds): Add test.
@matsl matsl requested a review from rswgnu March 25, 2026 23:38
@rswgnu
Copy link
Owner

rswgnu commented Mar 26, 2026

Ya, let's discuss on Sunday. Approved though.

@matsl
Copy link
Collaborator Author

matsl commented Mar 26, 2026

Ya, let's discuss on Sunday. Approved though.

Thanks. Let's try this approach instead to see if we can fix this if fixing is needed.

@matsl matsl merged commit dc5048c into master Mar 26, 2026
4 checks passed
@matsl matsl deleted the pr_expand_expected_failed_test_and_make_it_succeeed branch March 26, 2026 08:30
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