FAILURE MAP
← Case archive

FA-94255 / Shift rostering labor rules / Member archive

Leave weeks averaged in as zero-hour weeks · case 05

Taking leave lowers the average, hiding excessive hours in other weeks.

Member previewVariant 5 · 3 implementations · 8 checks per implementation

Case contract

Weeks [worked minutes, excluded leave/sick days]. The reference period needs ref counted weeks: weeks with any excluded day are skipped and replaced by following weeks. If fewer weeks are available, average the counted weeks. Return [counted weeks, floor average, average > limit] or [0, 0, False] when none count.

Why this case matters

Averaged weekly-hours limits require excluding leave weeks and extending the reference period.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
regression: excluded week as zero 1[3, 1100, false][3, 1700, false]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 ↗