FAILURE MAP
← Case archive

FA-80623 / Bidirectional text layout / Member archive

Paired bracket direction: pair processing order · case 03

Nested brackets resolve before their enclosing pair.

Member previewVariant 3 · 3 implementations · 8 checks per implementation

Case contract

Input [classes, bracket pairs, embedding level, sos]. Process pairs in opener order. Strong types inside (EN/AN count as R) matching the embedding direction set both brackets to it; if only the opposite direction is inside, use the first strong type before the opener (checking already-updated brackets; sos if none); with no strong type inside leave them. Return classes.

Why this case matters

Mixed right-to-left and left-to-right text must resolve levels and visual order exactly, or words, numbers and carets land in the wrong place.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
regression: pair processing order["R", "L", "R", "R", "R", "L", "L", "L"]["R", "L", "L", "R", "L", "L", "L", "L"]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 ↗