You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test(helpers): close coverage gaps for every tag/color form in issue #83
Adds a TestParseSwgohStringIssue83Coverage class that exercises every tag
and every color literal length called out in the issue across the output
formats where they are renderable but were previously untested:
- [t]/[/t] sprite, [y=X]/[/y] scale, [sub], [sub=X], [sup], [sup=X] in
terminal/discord (must strip cleanly, no markup leakage)
- 4-digit [RGBA] in bare and terminal (RGB channel emitted, alpha dropped)
- 8-digit [RRGGBBAA] in bare, terminal, and web (web uses rgba() with the
alpha channel converted to the 0-1 CSS float)
- 1-digit [A] alpha-only literal in terminal (re-emits the prior RGB)
- Standalone color literal in web with no enclosing [c] wrapper
Adding the web standalone-color test surfaced a latent bug: the web
finalizer never closed dangling spans/tags. _finalize_output now balances
any open color span and unclosed bold/italic/underline/strike depth so
strings that omit closing tags still produce well-formed HTML.
Total localization tests: 89 (was 77).
0 commit comments