FAILURE MAP
← Case archive

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

Whitespace comparison modes: -b discards leading whitespace · case 05

Indenting a line is not reported under -b, although whitespace appeared where there was none.

Member previewVariant 5 · 3 implementations · 10 checks per implementation

Case contract

Normalize each line: with strip_cr remove one trailing "\r"; mode "w" deletes all whitespace (str.split semantics); mode "b" collapses runs of spaces and tabs to one space and strips trailing spaces and tabs; mode "none" leaves the line. With ignore_blank, drop lines whose normalized key is empty. Return both key lists and whether they are equal.

Why this case matters

Diff options like -w, -b, --strip-trailing-cr and --ignore-blank-lines decide which changes are shown at all.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
leading whitespace presence matters under -b{"a": ["x"], "b": ["x"], "equal": true}{"a": [" x"], "b": ["x"], "equal": false}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 ↗