FAILURE MAP
← Case archive

FA-85093 / Fantasy sports scoring / Member archive

ERA truncated to whole runs before ranking · case 03

Teams with ERAs of 3.10 and 3.90 are ranked as tied.

Member previewVariant 3 · 3 implementations · 7 checks per implementation

Case contract

Rotisserie categories HR and SB rank high-to-low; ERA (earned runs x 27 / outs) and WHIP ((walks + hits) x 3 / outs) rank low-to-high using exact ratios. A team with zero outs has no ERA/WHIP and ranks last. With n teams the best rank earns n points and the worst 1; tied teams share the average of the positions they occupy. Return team -> doubled roto points (integers).

Why this case matters

Roto standings aggregate ratios and ties across categories; ratio precision and tie averaging decide league titles.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
regression: ratio precision{"R0": 19, "R1": 19, "R2": 20, "R3": 22}{"R0": 18, "R1": 20, "R2": 20, "R3": 22}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 ↗