Skip to content

Commit

Permalink
Fix title tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Him188 committed Nov 15, 2024
1 parent 341a373 commit 2e015da
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class `PatternTitleParserTest剧场版 紫罗兰永恒花园` : PatternBa
fun `651397_VCB_Studio_Gekijouban_Violet_Evergarden_10_bit_2160p_1080p_HEVC_BDRip_MOVIE`() {
val r =
parse("[VCB-Studio] 剧场版 紫罗兰永恒花园 / Gekijouban Violet Evergarden 10-bit 2160p/1080p HEVC BDRip [MOVIE]")
assertEquals("S?", r.episodeRange.toString())
assertEquals("01..01", r.episodeRange.toString())
assertEquals("", r.subtitleLanguages.sortedBy { it.id }.joinToString { it.id })
assertEquals("1080P", r.resolution.toString())
assertEquals(null, r.subtitleKind)
Expand All @@ -45,7 +45,7 @@ public class `PatternTitleParserTest剧场版 紫罗兰永恒花园` : PatternBa
@Test
public fun `615844_Violet_Evergarden_the_Movie_4K_SDR`() {
val r = parse("[云光字幕组]剧场版 紫罗兰永恒花园 Violet Evergarden the Movie [简体双语][4K SDR]招募时轴翻译")
assertEquals("null", r.episodeRange.toString())
assertEquals("01..01", r.episodeRange.toString())
assertEquals("CHS, JPN", r.subtitleLanguages.sortedBy { it.id }.joinToString { it.id })
assertEquals("null", r.resolution.toString())
assertEquals(null, r.subtitleKind)
Expand Down Expand Up @@ -173,7 +173,7 @@ public class `PatternTitleParserTest剧场版 紫罗兰永恒花园` : PatternBa
public fun `571322_WEBRip_MOVIE_Violet_Evergarden_1920x804_x_264_AAC_MP4`() {
val r =
parse("[森之屋动画组][WEBRip][剧场版 紫罗兰永恒花园 / 劇場版ヴァイオレット・エヴァーガーデン / MOVIE Violet Evergarden][1920x804][x.264 AAC MP4][俄语音轨][内嵌简中]")
assertEquals("null", r.episodeRange.toString())
assertEquals("01..01", r.episodeRange.toString())
assertEquals("CHS", r.subtitleLanguages.sortedBy { it.id }.joinToString { it.id })
assertEquals("null", r.resolution.toString())
assertEquals(SubtitleKind.EMBEDDED, r.subtitleKind)
Expand All @@ -183,7 +183,7 @@ public class `PatternTitleParserTest剧场版 紫罗兰永恒花园` : PatternBa
public fun `571317_WEBRip_MOVIE_Violet_Evergarden_1920x804_x_264_AAC_MP4`() {
val r =
parse("[森之屋动画组][WEBRip][剧场版 紫罗兰永恒花园 / 劇場版ヴァイオレット・エヴァーガーデン / MOVIE Violet Evergarden][1920x804][x.264 AAC MP4][日语剧场录音音轨(先行版)][内嵌简中]")
assertEquals("null", r.episodeRange.toString())
assertEquals("01..01", r.episodeRange.toString())
assertEquals("CHS, JPN", r.subtitleLanguages.sortedBy { it.id }.joinToString { it.id })
assertEquals("null", r.resolution.toString())
assertEquals(SubtitleKind.EMBEDDED, r.subtitleKind)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1358,7 +1358,7 @@ public class PatternTitleParserTest吹响吧_上低音号 : PatternBasedTitlePar
fun `540923_VCB_Studio_Gekijouban_Hibike_21_Euphonium_Chikai_no_Finale_10_bit_1080p_HEVC_BDRip_MOVIE`() {
val r =
parse("[千夏字幕组&VCB-Studio] Gekijouban Hibike! Euphonium Chikai no Finale / 剧场版 吹响吧!上低音号~誓言的终章~ 10-bit 1080p HEVC BDRip [MOVIE]")
assertEquals("S?", r.episodeRange.toString())
assertEquals("01..01", r.episodeRange.toString())
assertEquals("", r.subtitleLanguages.sortedBy { it.id }.joinToString { it.id })
assertEquals("1080P", r.resolution.toString())
assertEquals(null, r.subtitleKind)
Expand Down Expand Up @@ -1460,7 +1460,7 @@ public class PatternTitleParserTest吹响吧_上低音号 : PatternBasedTitlePar
public fun `505581_U3_Project_Liz_and_the_Blue_Bird_Liz_to_Aoi_Tori_BDMV_1080p_MOVIE_U3`() {
val r =
parse("[U3-Project] 吹響吧!上低音號~莉茲與青鳥~ / Liz and the Blue Bird / Liz to Aoi Tori / リズと青い鳥 [台本付数量限定版][BDMV][1080p][MOVIE]【U3自購團招人 / 新增合購計畫 , 內詳】")
assertEquals("S?", r.episodeRange.toString())
assertEquals("01..01", r.episodeRange.toString())
assertEquals("", r.subtitleLanguages.sortedBy { it.id }.joinToString { it.id })
assertEquals("1080P", r.resolution.toString())
assertEquals(null, r.subtitleKind)
Expand All @@ -1471,7 +1471,7 @@ public class PatternTitleParserTest吹响吧_上低音号 : PatternBasedTitlePar
fun `504907_VCB_Studio_Gekijouban_Hibike_21_Euphonium_Todoketai_Melody_10_bit_1080p_HEVC_BDRip_Movie_Fin`() {
val r =
parse("[VCB-Studio] Gekijouban Hibike! Euphonium: Todoketai Melody / 剧场版 吹响吧!上低音号~想要传达的旋律~ 10-bit 1080p HEVC BDRip [Movie Fin]")
assertEquals("S?", r.episodeRange.toString())
assertEquals("01..01", r.episodeRange.toString())
assertEquals("", r.subtitleLanguages.sortedBy { it.id }.joinToString { it.id })
assertEquals("1080P", r.resolution.toString())
assertEquals(null, r.subtitleKind)
Expand Down

0 comments on commit 2e015da

Please sign in to comment.