FA-97639 / Knitting and sewing pattern grading / Member archive
Buttonhole row planner: one-based rows · case 04
The first buttonhole is placed one row too low.
Case contract
Buttonholes run from bottom_offset to band_len - top_offset (cm), evenly spaced; a single buttonhole goes at the top position. Convert each position to a 1-based row: half-up of position*rows_per_10cm/10, plus 1. n < 1 -> "error: count"; top position below bottom -> "error: offsets".
Why this case matters
Cardigan button bands place buttonholes evenly between neck and hem offsets.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| five buttons | [6, 41, 76, 111, 146] | [7, 42, 77, 112, 147] | 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 ↗