FAILURE MAP
← Case archive

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

Diffstat histogram: a single insertion is pluralized · case 03

The summary reads "1 insertions(+)".

Member previewVariant 3 · 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
single insertion grammar["one | 1 +", "1 file changed, 1 insertions(+)"]["one | 1 +", "1 file changed, 1 insertion(+)"]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 ↗