0.81.4: Drive-In days turn over at midnight, lineup soonest first, changeovers in playback notes
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user