Commit 7b6e5ef
test: add regression test for mixed-unit offload false positive
Add test_multibyte_under_char_and_byte_limits_stays_inline which
exercises the specific #5561 regression: max_length=10000 with 3K
emoji chars (12K bytes). Under the old mixed-unit min(), the byte
count exceeded the character-based threshold, triggering a false
offload. With the fix, both limits are under their respective
thresholds and the text stays inline.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 00b8188 commit 7b6e5ef
1 file changed
Lines changed: 31 additions & 0 deletions
Lines changed: 31 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7498 | 7498 | | |
7499 | 7499 | | |
7500 | 7500 | | |
| 7501 | + | |
| 7502 | + | |
| 7503 | + | |
| 7504 | + | |
| 7505 | + | |
| 7506 | + | |
| 7507 | + | |
| 7508 | + | |
| 7509 | + | |
| 7510 | + | |
| 7511 | + | |
| 7512 | + | |
| 7513 | + | |
| 7514 | + | |
| 7515 | + | |
| 7516 | + | |
| 7517 | + | |
| 7518 | + | |
| 7519 | + | |
| 7520 | + | |
| 7521 | + | |
| 7522 | + | |
| 7523 | + | |
| 7524 | + | |
| 7525 | + | |
| 7526 | + | |
| 7527 | + | |
| 7528 | + | |
| 7529 | + | |
| 7530 | + | |
| 7531 | + | |
0 commit comments