FAILURE MAP
← Case archive

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

Gauge-based cast-on calculator: gauge per 10 cm · case 02

A 50 cm panel at 20 stitches per 10 cm asks for 1000 stitches.

Member previewVariant 2 · 3 implementations · 8 checks per implementation

Case contract

Target width = width + ease (ease may be negative). Raw stitches = target * gauge / 10 (gauge per 10 cm). Body stitches = nearest multiple of repeat, half-up in repeat units, at least one repeat. Cast on = body + 2*edge (selvedge each side). Actual body width = body*10/gauge, half-up to 0.1 cm. Non-positive target, gauge or repeat returns an error string.

Why this case matters

Knitting patterns and calculators convert a finished measurement and gauge into a stitch count that fits the stitch pattern repeat.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
rib with selvedges[1102, 500.0][114, 50.9]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 ↗