FAILURE MAP
← Case archive

FA-84047 / Sports scoring and tiebreakers / Member archive

Losing bonus margin off by one · case 02

A seven-point defeat earns no losing bonus.

Member previewVariant 2 · 3 implementations · 8 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
boundary losing by seven[["Bath", 4, 1, 7], ["Leeds", 0, 0, -7]][["Bath", 4, 1, 7], ["Leeds", 1, 0, -7]]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 ↗