FA-97602 / Knitting and sewing pattern grading / Member archive
Quilt binding strip planner: diagonal join loss · case 02
The planner cuts an extra strip because it counts a join on the last strip.
Case contract
Usable strip length = fabric_width - 2*selvage. Joining n strips with diagonal seams loses strip_width per join (n-1 joins). Need perimeter + tail. n is the smallest count with n*usable - (n-1)*strip_width >= need. Return [n, fabric cut length n*strip_width, surplus]; usable <= strip_width -> "error: fabric too narrow".
Why this case matters
Quilters cut width-of-fabric strips and join them diagonally to bind the quilt edge.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| two strips | [2, 12, 4] | [2, 12, 10] | 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 ↗