mirror of
https://github.com/mihonapp/mihon.git
synced 2025-10-28 21:07:57 +01:00
Fixed wrong chapter recognition for S0 - Chapter 00 (#499)
This commit is contained in:
committed by
GitHub
parent
c9e1e6e020
commit
4f5518bdd8
@@ -429,4 +429,15 @@ class ChapterRecognitionTest {
|
||||
assertThat(chapter.chapter_number).isEqualTo(7f)
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Test for chapters in format sx - chapter xx
|
||||
*/
|
||||
@Test fun chapterContainingSeasonCase2() {
|
||||
createManga("The Gamer")
|
||||
|
||||
createChapter("S3 - Chapter 20")
|
||||
ChapterRecognition.parseChapterNumber(chapter, manga)
|
||||
assertThat(chapter.chapter_number).isEqualTo(20f)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user