FAILURE MAP
← Case archive

FA-79350 / Barcode symbology encoding / Member archive

EAN-13 parity rows for leading digits 7 and 8 are exchanged · case 05

Codes starting with 7 decode as starting with 8 and vice versa, silently changing the country prefix.

Member previewVariant 5 · 3 implementations · 8 checks per implementation

Case contract

Encode a 13-character string of ASCII digits (the check digit is taken as given, not verified) as the 95-module EAN-13 pattern: start guard 101, six left digits in L or G sets chosen by the parity row of the leading digit, centre guard 01010, six right digits in the R set, end guard 101. R is the bitwise complement of L and G is R reversed. Anything else returns None.

Why this case matters

Retail, logistics, pharmacy and document workflows depend on encoders that produce exactly the module pattern, code-set switches, separators and quiet zones scanners expect; one misplaced module or separator makes a label unreadable or, worse, scan as different data.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
regression: parity rows for leading 7 and 8 0"10100110010010111011000100111010011101011011101010101110011011001011100110011010010001011100101""10100110010010111011000100111010100011000100101010101110011011001011100110011010010001011100101"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 ↗