FA-97470 / Knitting and sewing pattern grading / Member archive
Knitting chart row reader: wrong-side parity · case 05
Row 1 of a chart starting on the right side is read as a wrong-side row.
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 |
|---|---|---|---|
| RS row | "p2, k1, yo, p2tog" | "k2tog, yo, p1, k2" | 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 ↗