FAILURE MAP
← Case archive

FA-84057 / Sports scoring and tiebreakers / Member archive

Points difference ranked ahead of wins · case 02

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

Member previewVariant 2 · 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[["Leeds", 8, 2, 22], ["Bath", 7, 1, -2], ["Sale", 4, 0, -2], ["Wasps", 4, 1, -18]][["Leeds", 8, 2, 22], ["Bath", 7, 1, -2], ["Wasps", 4, 1, -18], ["Sale", 4, 0, -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 ↗