Commit ab67038
fix(tests): correct Cyrillic-A assertion to expect invalid-character warning
NFKC normalization does not map Cyrillic lookalikes to Latin characters
(e.g. Cyrillic А U+0410 normalises to itself, not to Latin A U+0041).
These characters are rejected correctly by the existing ASCII-only regex
check, not by the new NFKC check. The test was asserting the wrong warning
key; update it to assert the "invalid characters" diagnostic that is
actually emitted, and add a comment explaining the distinction.
Fixes review finding from cubic-dev-ai.
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>1 parent 1bbd671 commit ab67038
1 file changed
Lines changed: 8 additions & 4 deletions
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
228 | | - | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
229 | 234 | | |
230 | 235 | | |
231 | 236 | | |
232 | | - | |
233 | | - | |
234 | | - | |
| 237 | + | |
| 238 | + | |
235 | 239 | | |
236 | 240 | | |
237 | 241 | | |
| |||
0 commit comments