FAILURE MAP
← Case archive

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

Hunk overlap check: an insertion is modelled as an empty range at its start line · case 02

Insertions directly before a changed range are not flagged.

Member previewVariant 2 · 3 implementations · 10 checks per implementation

Case contract

Two patches against the same base list hunks as [old_start, old_len]. A hunk with length > 0 covers lines start..start+len-1; a zero-length hunk is an insertion after line start and sits at start+0.5. Hunks conflict when their spans overlap or are adjacent (within one line). Return sorted [i, j] index pairs of conflicting hunks from the first and second patch.

Why this case matters

Cherry-picks and concurrent patch application refuse to auto-merge changes that touch or abut the same lines.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
insertion next to a range[][[0, 0]]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 ↗