FAILURE MAP
← Case archive

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

Evenly spaced increase row: segment capacity · case 05

Ten flat increases over ten stitches produce a "k0" segment.

Member previewVariant 5 · 3 implementations · 8 checks per implementation

Case contract

Distribute increases (m1) evenly over stitches. Flat rows use increases+1 segments with no increase at the edges; rounds use `increases` segments each followed by m1. Segment length is stitches // segments; the remainder adds one stitch to segments in order: rounds from the start, flat rows alternating from the outside in (first, last, second, second-last...). Segments must hold at least one stitch, else "error: too many increases". 0 increases -> "k<n>"; negative counts or no stitches -> "error: counts". Output "k4, m1, k5, ...".

Why this case matters

Yoke, cuff-to-body and hem transitions ask knitters to increase evenly across a row.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
flat over maximum"k1, m1, k1, m1, k1, m1, k1, m1, k1, m1, k0, m1, k1, m1, k1, m1, k1, m1, k1, m1, k1""error: too many increases"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 ↗