FAILURE MAP
← Case archive

FA-75799 / Text diff and three-way merge / Member archive

Hunk function context: long headings are not truncated · case 04

Very long signatures overflow the hunk header.

Member previewVariant 4 · 3 implementations · 8 checks per implementation

Case contract

For each hunk whose old range starts at 1-based line s, search the old lines strictly before s, nearest first, for a line whose first character is a letter, "_" or "$". The heading is that line with trailing whitespace removed, truncated to limit characters; "" if none.

Why this case matters

The text after the @@ header helps reviewers locate a hunk; choosing the wrong line or including the hunk itself misleads.

One recorded failure

Sample boundary fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
long heading is truncated["def xxxxxxxxxxxxxxxxxxxxxxxx():"]["def xxxxxxxxxx"]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 ↗