0.81.4: Drive-In days turn over at midnight, lineup soonest first, changeovers in playback notes
pauljd/davidson-ci: Davidson CI / quality (push) Failing after 3m33s
pauljd/davidson-ci: Davidson CI / ai-review (push) Failing after 1m44s

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-11-03 08:35:07 +00:00
co-authored by Claude Opus 5.5
parent 83f83590e9
commit 99ffebfe47
7 changed files with 33 additions and 8 deletions
@@ -78,7 +78,15 @@ class DriveInTest {
@Test fun theLineupIsTheNextOfEachKind() {
val plan = planDriveIn(null, big, late, bills, at(2, 10), london)!!
val lineup = driveInLineup(driveInBills(plan, london), at(2, 10))
assertEquals(DriveInKind.values().toList(), lineup.map { it.kind })
assertEquals(DriveInKind.values().toSet(), lineup.map { it.kind }.toSet())
assertEquals(lineup.sortedBy { it.startMs }, lineup)
}
@Test fun afterMidnightTheNewDayIsTonight() {
val plan = planDriveIn(null, big, late, bills, at(2, 10), london)!!
val tuesday = driveInBills(plan, london).first { it.startMs >= at(3, 6) }
assertEquals("Tonight", driveInDay(tuesday, at(3, 0, 30), london))
assertEquals("Tomorrow", driveInDay(tuesday, at(2, 23, 30), london))
}
@Test fun dayNamesCountTheSmallHoursAsTheNightBefore() {