FAILURE MAP
← Case archive

FA-84059 / Sports scoring and tiebreakers / Member archive

Points difference ranked ahead of wins · case 04

Teams level on points are ordered by points difference instead of wins.

Member previewVariant 4 · 3 implementations · 9 checks per implementation

Case contract

Rugby union league points. results rows are [team, tries, score, opponent, opp_tries, opp_score]. Win 4 points, draw 2, loss 0. A try bonus point is earned by any team scoring 4 or more tries, and a losing bonus point by a team that loses by 7 points or fewer (both can apply to a loser). Rank by points, then wins, then points difference, then name. Return [team, points, wins, points difference] rows for teams that appear.

Why this case matters

Bonus-point tables are tight; each threshold changes qualification.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
regression: table tiebreak order[["Wasps", 15, 3, -2], ["Bath", 9, 1, 2], ["Sale", 9, 2, 0]][["Wasps", 15, 3, -2], ["Sale", 9, 2, 0], ["Bath", 9, 1, 2]]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 ↗