FAILURE MAP
← Case archive

FA-85025 / Fantasy sports scoring / Member archive

Scoring exactly the median recorded as a loss · case 05

In an odd league the median team always takes a median loss.

Member previewVariant 5 · 3 implementations · 7 checks per implementation

Case contract

Weekly fantasy scores are integer hundredths. Each head-to-head pair records a win/loss or a tie on equal scores (an odd team out has no head-to-head game). Every team also plays the league median: the middle score for an odd team count or the mean of the two middle scores for an even count; above the median is a win, below a loss, equal a tie. Return team -> [wins, losses, ties].

Why this case matters

Median-scoring leagues award a second result each week; the median definition and half-point comparisons decide playoff races.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
regression: median tie result{"T0": [1, 1, 0], "T1": [2, 0, 0], "T2": [0, 2, 0], "T3": [0, 2, 0], "T4": [0, 2, 0], "T5": [2, 0, 0]}{"T0": [1, 1, 0], "T1": [2, 0, 0], "T2": [0, 1, 1], "T3": [0, 2, 0], "T4": [0, 1, 1], "T5": [2, 0, 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 ↗