FA-75840 / Text diff and three-way merge / Member archive
Diffstat path truncation: the directory separator is dropped after the ellipsis · case 05
Truncated paths read "...file.py" instead of ".../file.py", hiding that a directory was cut.
Case contract
A path longer than width is shown as "..." plus its last width-3 characters, further shortened to start at the first "/" inside that tail when there is one (keeping the slash). Paths not longer than width are unchanged.
Why this case matters
Narrow terminals truncate long paths in diffstat output; the rule keeps the most informative part of the path.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| long name cut at a directory boundary | ["...file_name.py"] | [".../file_name.py"] | Failed |
MEMBER ARCHIVE
The complete case is available to members.
This record includes three runnable implementations, regression fixtures, execution results, and source hashes.
Member access is invitation-based. Sign in with your invited account to inspect the sources.
Sign in to the archive ↗