Commit a5aff94
committed
Add regression tests for triple-chained prefixes and chain+suffix
PR review flagged that the current tests only cover the narrowest case
(a single prefix phrase repeated twice). Add two stronger guards for the
exact code path #208's fix touches: 3+ chained repeats, and a repeated
chain immediately followed by a suffix (the prefix-run absorption loop
and the suffix-boundary loop share the same index variable, so this
combination is worth pinning down explicitly).1 parent 6a7532d commit a5aff94
1 file changed
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
320 | 337 | | |
321 | 338 | | |
322 | 339 | | |
| |||
0 commit comments