FA-97484 / Knitting and sewing pattern grading / Member archive
Knitting chart row reader: WS decrease equivalents · case 04
A k2tog on a WS row is worked as a knit decrease, leaning and showing on the wrong face.
Case contract
chart rows are listed bottom-up (row 1 first), cells left-to-right as drawn. Rounds and RS rows read right-to-left unchanged. Flat WS rows (even rows, or odd rows when start_ws) read left-to-right with swaps k<->p, k2tog->p2tog, ssk->ssp, yo stays. Runs of identical stitches merge: k/p as "k3", others as "yo" or "yo x2". Row outside 1..len -> error.
Why this case matters
Chart readers must flip reading direction and stitch meaning on wrong-side rows.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| WS row swapped | "k2, p1, ssk, p1" | "k2, p1, ssp, p1" | 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 ↗