FA-77672 / Legal deadline computation / Member archive
Court holiday calendar with observed dates: next new year · case 02
When next New Year falls on Saturday, December 31 is missing from the calendar.
Case contract
Stipulated court holidays for a year: new-year (Jan 1), mlk (3rd Monday Jan), memorial (last Monday May), juneteenth (Jun 19), independence (Jul 4), labor (1st Monday Sep), thanksgiving (4th Thursday Nov), day-after-thanksgiving, christmas (Dec 25). Fixed-date holidays on Saturday are observed the Friday before and on Sunday the Monday after. When next year's January 1 is a Saturday, a new-year-observed entry falls on December 31 of this year; an observed date that falls in another year is not part of this year's calendar. Return [[name, date]] sorted by date.
Why this case matters
Docketing systems compute filing and response deadlines from trigger events; a wrong date can forfeit a right.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| 2016 next new year sunday | [["new-year", "2016-01-01"], ["mlk", "2016-01-18"], ["memorial", "2016-05-30"], ["juneteenth", "2016-06-20"], ["independence", "2016-07-04"], ["labor", "2016-09-05"], ["thanksgiving", "2016-11-24"], ["day-after-thanksgiving", "2016-11-25"], ["christmas", "2016-12-26"], ["new-year-observed", "2016-12-31"]] | [["new-year", "2016-01-01"], ["mlk", "2016-01-18"], ["memorial", "2016-05-30"], ["juneteenth", "2016-06-20"], ["independence", "2016-07-04"], ["labor", "2016-09-05"], ["thanksgiving", "2016-11-24"], ["day-after-thanksgiving", "2016-11-25"], ["christmas", "2016-12-26"]] | 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 ↗