Added chapter recognition for "season" case

This commit is contained in:
NoodleMage
2016-06-02 16:39:19 +02:00
parent eec728f162
commit 10ec3a9b0c
2 changed files with 16 additions and 1 deletions

View File

@@ -418,4 +418,15 @@ class ChapterRecognitionTest {
assertThat(chapter.chapter_number).isEqualTo(24.005f)
}
/**
* Test for chapters containing season
*/
@Test fun chapterContainingSeasonCase() {
createManga("D.I.C.E")
createChapter("D.I.C.E[Season 001] Ep. 007")
ChapterRecognition.parseChapterNumber(chapter, manga)
assertThat(chapter.chapter_number).isEqualTo(7f)
}
}