Skip to content

Add String#unicode_normalize! - #472

Merged
tannevaled merged 1 commit into
mainfrom
feat/cluster42
Aug 27, 2026
Merged

tannevaled merged 1 commit into
mainfrom
feat/cluster42

Conversation

@tannevaled

Copy link
Copy Markdown
Contributor

The in-place form was missing (unicode_normalize / unicode_normalized?
already existed). unicode_normalize! normalizes the receiver's bytes and
returns self, even when the string is already normalized. The form argument is
validated (ArgumentError for an unknown form) before the frozen check
(FrozenError), matching MRI's order.

Verified against ruby 4.0.6. Whole-package coverage stays at 100%; the ruby/spec
ratchet floor rises 15830 → 15840 (core/string/unicode_normalize 6 → 12, zero
regressions in a deterministic per-file sweep).

🤖 Generated with Claude Code

The in-place form was missing (unicode_normalize / unicode_normalized? already
existed). It normalizes the receiver's bytes and returns self, even when the
string is already normalized. The form argument is validated (ArgumentError for
an unknown form) before the frozen check (FrozenError), matching MRI's order.

Verified against ruby 4.0.6. Whole-package coverage stays at 100%; the ruby/spec
floor rises 15830 -> 15840 (core/string/unicode_normalize 6 -> 12).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@tannevaled
tannevaled merged commit be0d39e into main Aug 27, 2026
7 checks passed
@tannevaled
tannevaled deleted the feat/cluster42 branch August 27, 2026 18:57
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