FA-6553 / Calendar arithmetic / Member archive
Weekday count half open date range · case 03
Weekend days are counted as working weekdays.
Case contract
Valid ISO Gregorian dates in years 1 through 9999; generated dates must remain in that range. Month is 1 through 12 and zero-based weekday is Monday 0 through Sunday 6 unless the output convention says otherwise. start<=end; count Monday through Friday in [start,end), without public-holiday exclusions. Exact operational definition: sum((date.fromisoformat(start)+timedelta(days=i)).weekday()<5 for i in range((date.fromisoformat(end)-date.fromisoformat(start)).days))
Why this case matters
Small exact fixtures expose this error without platform timing, external services, or probabilistic observations. Calendar conventions results depend on the stated convention.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| fixture 1: ('2024-01-01', '2024-01-08') | 7 | 5 | 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 ↗