FA-97375 / Knitting and sewing pattern grading / Member archive
Evenly spaced increase row: symmetric remainder · case 05
Leftover stitches pile up on the right edge of a flat row, making the increases lopsided.
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 fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| flat with remainder | "k6, m1, k6, m1, k6, m1, k5" | "k6, m1, k6, m1, k5, m1, k6" | 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 ↗