FAILURE MAP
← Case archive

FA-97568 / Knitting and sewing pattern grading / Member archive

Seam and hem allowance cutter: piece validation · case 03

A zero-width piece is accepted and cut as a strip of seam allowance.

Member previewVariant 3 · 3 implementations · 8 checks per implementation

Case contract

Pieces [name, finished_w, finished_h, on_fold, hemmed]. Cut width = w/2 + sa when cut on the fold (no allowance on the fold), else w + 2*sa. Cut height = h + sa (top) + (hem if hemmed else sa). Fabric area counts the unfolded piece (2*cut width for fold pieces) * cut height, summed and half-up to cm^2. A non-positive finished dimension -> "error: piece". Return [[name, cut_w, cut_h] floats, area].

Why this case matters

Pattern drafting software adds seam and hem allowances and handles place-on-fold pieces.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
zero width[[["yoke", 2.0, 12.0]], 24]"error: piece"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 ↗