The Chair reads "Sci-Fi" as science fiction

434 of the library's films carry only the "Sci-Fi" tag; the Chair took them for not
science fiction, so Orbit Sci-Fi could never be suggested for them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-23 15:38:06 +00:00
co-authored by Claude Opus 5.5
parent d953b961fa
commit da1f203071
3 changed files with 11 additions and 1 deletions
@@ -48,4 +48,12 @@ class PixelzWonderTest {
assertTrue(it in pixelzList); assertFalse(it in wonderList)
}
}
@Test fun aFilmTaggedSciFiIsScienceFictionToTheChair() {
val e = TitleEvidence.of(JSONObject().put("id", "s").put("type", "Movie").put("name", "Star Run").put("year", 1991)
.put("overview", "A robot from the future travels back in time to protect a boy on a distant planet.").put("genres", JSONArray(listOf("Action", "Sci-Fi")))
.put("studios", JSONObject.NULL).put("rating", "15").put("countries", JSONObject.NULL).put("taglines", JSONObject.NULL))
assertTrue("Science Fiction" in e.genreSet)
assertTrue(channelScore(e, Briefs.first { it.number == 303 }, ChannelText(emptyMap(), mapOf("s" to e))).first > 0)
}
}