FAILURE MAP
← Case archive

FA-84104 / Sports scoring and tiebreakers / Member archive

Team with no games breaks the percentage · case 04

A team yet to play raises a division error or is shown as a .500 team.

Member previewVariant 4 · 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
boundary no games played"raised ZeroDivisionError"[["Bucks", ".000", "-"], ["Suns", ".000", "-1.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 ↗