Skip to content

Extend decoration leak test to italic, underlined, strikethrough, obfuscated#2920

Merged
tastybento merged 1 commit intodevelopfrom
test/2917-decoration-leak-coverage
Apr 7, 2026
Merged

Extend decoration leak test to italic, underlined, strikethrough, obfuscated#2920
tastybento merged 1 commit intodevelopfrom
test/2917-decoration-leak-coverage

Conversation

@tastybento
Copy link
Copy Markdown
Member

Summary

Follow-up to #2918 — the bold leak fixed there affected all five Adventure decorations equally, not just bold. The reporter on #2917 confirmed the same issue with <italic>, <underlined>, <strikethrough>, and <obfuscated>.

The fix in #2918 already handled all five (the EmittedState walker tracks every decoration and inserts §r on any on→off transition), but the test only locked in the bold case. This adds a parameterised round-trip test that exercises each decoration in turn so we don't regress.

Refs #2917

Test plan

🤖 Generated with Claude Code

…cated

The decoration leak fixed in the previous commit affected all five
decorations equally, not just bold. Lock that in with a parameterised
test that verifies each decoration in turn.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@tastybento tastybento merged commit b8a93ed into develop Apr 7, 2026
1 check passed
@tastybento tastybento deleted the test/2917-decoration-leak-coverage branch April 7, 2026 03:09
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Apr 7, 2026

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.

1 participant