handle chapters with part numbers

This commit is contained in:
Robin Appelman
2016-02-09 21:23:57 +01:00
parent bc1ddd4379
commit e6faee9779
2 changed files with 19 additions and 1 deletions

View File

@@ -165,4 +165,11 @@ public class ChapterRecognitionTest {
ChapterRecognition.parseChapterNumber(c, randomManga);
assertThat(c.chapter_number).isEqualTo(123f);
}
@Test
public void testChapterWithChapterPrefixAfterPart() {
Chapter c = createChapter("Tokyo ESP 027: Part 002: Chapter 001");
ChapterRecognition.parseChapterNumber(c, randomManga);
assertThat(c.chapter_number).isEqualTo(027f);
}
}