FAILURE MAP
← Case archive

FA-94022 / Shift rostering labor rules / Member archive

Night period truncated at midnight · case 02

Only 23:00-24:00 counts as night; early morning hours are lost.

Member previewVariant 2 · 3 implementations · 8 checks per implementation

Case contract

A shift [start, end] in absolute minutes (day 0 starts at minute 0) and a night-shift threshold. The night period runs 23:00 to 06:00 across midnight. Return [night minutes, whether night minutes reach the threshold].

Why this case matters

Night-work classification drives night-worker limits and premiums and must handle shifts that start after midnight.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
regression: window clamped at midnight 1[60, false][420, true]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 ↗