FAILURE MAP
← Case archive

FA-84097 / Sports scoring and tiebreakers / Member archive

Equal percentages ordered by name before wins · case 02

A 4-4 team is listed below a 2-2 team.

Member previewVariant 2 · 3 implementations · 8 checks per implementation

Case contract

Division standings. teams rows are [name, wins, losses]. Win percentage is wins / games (0 for no games) shown with three decimals and the leading zero dropped (".500", but "1.000"). Sort by win percentage, then more wins, then name. The leader is the first sorted row; games behind = ((leader_wins - wins) + (losses - leader_losses)) / 2, shown as "-" when zero and otherwise with one decimal (negative values allowed). Return [name, pct, gb] rows.

Why this case matters

Standings pages and playoff-race widgets print win percentage and games behind.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
regression: equal percentage order[["Cats", "1.000", "-"], ["Suns", "1.000", "-7.0"], ["Jets", ".750", "-4.5"], ["Wolves", ".000", "0.5"]][["Suns", "1.000", "-"], ["Cats", "1.000", "7.0"], ["Jets", ".750", "2.5"], ["Wolves", ".000", "7.5"]]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 ↗