FAILURE MAP
← Case archive

FA-85012 / Fantasy sports scoring / Member archive

Median ending in .005 truncated before comparison · case 02

A team exactly 0.005 below a half-hundredth median is recorded as a median tie.

Member previewVariant 2 · 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: half-point median comparison{"T0": [1, 0, 1], "T1": [0, 2, 0], "T2": [2, 0, 0], "T3": [1, 1, 0], "T4": [2, 0, 0], "T5": [0, 2, 0]}{"T0": [1, 1, 0], "T1": [0, 2, 0], "T2": [2, 0, 0], "T3": [1, 1, 0], "T4": [2, 0, 0], "T5": [0, 2, 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 ↗