FAILURE MAP
← Case archive

FA-97615 / Knitting and sewing pattern grading / Member archive

Quilt binding strip planner: strip count loop · case 05

An exact fit plans one more strip than needed.

Member previewVariant 5 · 3 implementations · 8 checks per implementation

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 fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
regression: strip count loop[5, 20, 104][4, 16, 0]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 ↗