FAILURE MAP
← Case archive

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

Diffstat histogram: zero insertions are still reported · case 04

A deletion-only change says "0 insertions(+)".

Member previewVariant 4 · 3 implementations · 10 checks per implementation

Case contract

Files are [path, added, removed], with None counts for binary files. Each text file prints "path | total +++---"; when the largest total exceeds width, both counts scale by width/max with floor, but a non-zero count keeps at least one mark. Binary files print "path | Bin". The summary counts files and, when non-zero, insertions and deletions with singular/plural wording.

Why this case matters

Diffstat output is how reviewers size a change; scaling and pluralization rules are easy to get subtly wrong.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
only deletions["gone | 8 --------", "1 file changed, 0 insertions(+), 8 deletions(-)"]["gone | 8 --------", "1 file changed, 8 deletions(-)"]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 ↗