FA-94774 / Exam timetabling constraints / Member archive
Required features compared case-sensitively · case 04
A requirement for "Lab" is never satisfied by a room tagged "lab".
Case contract
placements [exam, room, seats]; rooms room -> [capacity, features]; needs exam -> required features. Features compare case-insensitively. Report [exam, room, "features", sorted missing] for each placement lacking features, then ["*", room, "capacity", [load, capacity]] for rooms whose total placed seats exceed capacity.
Why this case matters
Room suitability (labs, computers, accessibility) and capacity are hard constraints of room allocation.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| regression: feature case folding 1 | [["MATH101", "R2", "features", ["accessible", "computers"]], ["MATH101H", "R3", "features", ["Lab", "computers"]], ["*", "R3", "capacity", [3, 1]]] | [["MATH101", "R2", "features", ["accessible", "computers"]], ["MATH101H", "R3", "features", ["computers", "lab"]], ["*", "R3", "capacity", [3, 1]]] | 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 ↗