Director's Chair: your channels get its picks too
Each channel you make joins the Chair with its own shows as its identity: the kinds it carries, the genres most of them share, their era, and whether it's all for children. Its few weekly picks can now land on your channels, matched to them, from the same short list. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -69,4 +69,18 @@ class SmartSetupTest {
|
||||
assertTrue(weekLine(200 * hour).contains("more than a week"))
|
||||
assertTrue(weekLine(42 * hour, hoursPerDay = 6).contains("more than a week")) // an evenings-only channel goes further
|
||||
}
|
||||
|
||||
@Test fun yourChannelsJoinTheChairWithTheirOwnShowsAsTheirIdentity() {
|
||||
val rows = listOf(row("X-Files", "Series", "TV-14", "Science Fiction", "Mystery", "Drama", year = 1993), row("Millennium", "Series", "TV-14", "Mystery", "Crime", "Drama", year = 1996),
|
||||
row("Twin Peaks", "Series", "TV-14", "Mystery", "Drama", year = 1990), row("Poltergeist", "Movie", "PG", "Horror", year = 1982))
|
||||
val brief = yourBrief(701, "The Unknown", rows)!!
|
||||
assertEquals(setOf("Series", "Movie"), brief.kinds)
|
||||
assertTrue("Mystery" in brief.genresAny); assertTrue("Drama" in brief.genresAny)
|
||||
assertTrue(brief.needAny.isEmpty()) // no genre on every one of them
|
||||
assertEquals(1977 to 2001, brief.era); assertFalse(brief.kids)
|
||||
assertTrue(yourBrief(702, "Little Ones", listOf(row("Bluey", "Series", "TV-Y", "Animation")))!!.kids)
|
||||
assertNull(yourBrief(703, "Empty", emptyList()))
|
||||
val before = YourBriefs
|
||||
try { YourBriefs = listOf(brief); assertTrue(Briefs.any { it.number == 701 }); assertTrue(Briefs.any { it.number == 101 }) } finally { YourBriefs = before }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user