FAILURE MAP
← Case archive

FA-94199 / Shift rostering labor rules / Member archive

Rostered days off break holiday pay eligibility · case 04

A holiday falling after a weekend off is never paid.

Member previewVariant 4 · 3 implementations · 8 checks per implementation

Case contract

A day-status string (W worked, A unexcused absence, X excused absence, O not scheduled) and holiday indices. A holiday is paid if the nearest scheduled day before it and the nearest after it (skipping O days and other holidays) are both W or X; if either does not exist in the roster, it is not paid. Return [holiday, eligible] in holiday order.

Why this case matters

Last-and-first-shift holiday pay rules are frequently misapplied around days off and adjacent holidays.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
regression: skip unscheduled days 1[[3, false]][[3, 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 ↗