Keep the no-overlap rule when a film pool is too small for its rest (0.64.0)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -538,4 +538,11 @@ class ChannelScheduleTest {
|
||||
assertFalse(SmartChannels.first { it.number == 103 }.englishAudio)
|
||||
assertTrue(SmartChannels.first { it.number == 123 }.englishAudio)
|
||||
}
|
||||
|
||||
@Test fun aSmallFilmPoolStillAvoidsClashesWhileItsRestIsBroken() {
|
||||
val small = (1..6).map { film("s$it") }
|
||||
val other = extendSchedule(small, ScheduleCursor(), now, now + 7 * day, 7 * day)
|
||||
val mine = extendSchedule(small, ScheduleCursor(), now, now + 7 * day, 7 * day, avoid = clashesWith(listOf(other)))
|
||||
assertEquals(0, programmeOverlaps(other.entries, mine.entries))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user